/*
               File: Noticia
        Description: Noticia
             Author: GeneXus C# Generator version 10_2_1-58381
       Generated on: 8/28/2012 20:59:14.68
       Program type: Callable routine
          Main DBMS: sqlserver
*/
using System;
using System.Collections;
using GeneXus.Utils;
using GeneXus.Resources;
using GeneXus.Application;
using GeneXus.Metadata;
using System.Data;
using System.Data.SqlClient;
using GeneXus.Data;
using com.genexus;
using GeneXus.Data.ADO;
using GeneXus.Data.NTier;
using GeneXus.Data.NTier.ADO;
using System.Runtime.Remoting;
using GeneXus.WebControls;
using GeneXus.Http;
using GeneXus.XML;
using GeneXus.Search;
using GeneXus.Encryption;
using GeneXus.Http.Client;
using System.Xml.Serialization;
using System.Data.SqlTypes;
using System.ServiceModel;
using System.Runtime.Serialization;
namespace GeneXus.Programs {
   public class noticia : GXDataArea, System.Web.SessionState.IRequiresSessionState
   {
      protected void INITENV( )
      {
         if ( GxWebError != 0 )
         {
            return  ;
         }
      }

      protected void INITTRN( )
      {
         initialize_properties( ) ;
         entryPointCalled = false ;
         gxfirstwebparm = GetNextPar( ) ;
         gxfirstwebparm_bkp = gxfirstwebparm ;
         gxfirstwebparm = DecryptAjaxCall( gxfirstwebparm) ;
         if ( StringUtil.StrCmp(gxfirstwebparm, "dyncall") == 0 )
         {
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            dyncall( GetNextPar( )) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxExecAct_"+"gxLoad_16") == 0 )
         {
            A10TipoNoticiaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxLoad_16( A10TipoNoticiaId) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxExecAct_"+"gxLoad_17") == 0 )
         {
            A29AgenciaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxLoad_17( A29AgenciaId) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxExecAct_"+"gxLoad_18") == 0 )
         {
            A32PeriodistaRespId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxLoad_18( A32PeriodistaRespId) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxEvt") == 0 )
         {
            setAjaxEventMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxfirstwebparm = GetNextPar( ) ;
         }
         else
         {
            if ( ! IsValidAjaxCall( false) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxfirstwebparm = gxfirstwebparm_bkp ;
         }
         if ( ! entryPointCalled )
         {
            Gx_mode = gxfirstwebparm ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            if ( StringUtil.StrCmp(gxfirstwebparm, "viewer") != 0 )
            {
               AV7NoticiaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV7NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV7NoticiaId), 4, 0)));
            }
         }
         Form.Meta.addItem("Generator", "GeneXus C# 10_2_1-58381", 0) ;
         Form.Meta.addItem("Description", "Noticia", 0) ;
         context.wjLoc = "" ;
         context.nUserReturn = 0 ;
         context.wbHandled = 0 ;
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
         }
         GX_FocusControl = edtNoticiaFecha_Internalname ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         wbErr = false ;
         context.SetDefaultTheme("GeneXusXEv2");
      }

      public noticia( )
      {
         context = new GxContext(  );
         DataStoreUtil.LoadDataStores( context);
         dsDefault = context.GetDataStore("Default") ;
         IsMain = true;
         context.SetDefaultTheme("GeneXusXEv2");
      }

      public noticia( IGxContext context )
      {
         this.context = context;
         IsMain = false;
         dsDefault = context.GetDataStore("Default") ;
      }

      public void release( )
      {
      }

      public void execute( String aP0_Gx_mode ,
                           short aP1_NoticiaId )
      {
         this.Gx_mode = aP0_Gx_mode;
         this.AV7NoticiaId = aP1_NoticiaId;
         executePrivate();
      }

      void executePrivate( )
      {
         isStatic = false;
         webExecute();
      }

      protected override void createObjects( )
      {
      }

      public override void webExecute( )
      {
         if ( initialized == 0 )
         {
            createObjects();
            initialize();
         }
         INITENV( ) ;
         INITTRN( ) ;
         if ( ( GxWebError == 0 ) && ! isAjaxCallMode( ) )
         {
            MasterPageObj = (GXMasterPage) ClassLoader.GetInstance("appmasterpage", "GeneXus.Programs.appmasterpage", new Object[] {new GxContext( context.handle, context.DataStores, context.HttpContext)});
            MasterPageObj.setDataArea(this,false);
            MasterPageObj.webExecute();
            if ( context.isAjaxRequest( ) )
            {
               enableOutput();
               if ( ! context.isAjaxRequest( ) )
               {
                  context.GX_webresponse.AppendHeader("Cache-Control", "max-age=0");
               }
               if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) )
               {
                  context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
               }
               else
               {
                  if ( context.isAjaxRequest( ) )
                  {
                     disableOutput();
                  }
                  RenderHtmlHeaders( ) ;
                  context.Redirect( context.wjLoc );
                  context.DispatchAjaxCommands();
               }
            }
         }
         this.cleanup();
      }

      protected void Draw( )
      {
         if ( context.isAjaxRequest( ) )
         {
            disableOutput();
         }
         if ( ! GxWebStd.gx_redirect( context) )
         {
            disable_std_buttons( ) ;
            enableDisable( ) ;
            set_caption( ) ;
            /* Form start */
            wb_table1_2_0910( true) ;
         }
         return  ;
      }

      protected void wb_table1_2_0910e( bool wbgen )
      {
         if ( wbgen )
         {
         }
         /* Execute Exit event if defined. */
      }

      protected void wb_table1_2_0910( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTablemain_Internalname, tblTablemain_Internalname, "", "TableBorder100x100", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            wb_table2_5_0910( true) ;
         }
         return  ;
      }

      protected void wb_table2_5_0910e( bool wbgen )
      {
         if ( wbgen )
         {
            /* Control Group */
            ClassString = "Group" ;
            StyleString = "" ;
            context.WriteHtmlText( "<fieldset id=\""+grpGroupdata_Internalname+"\""+" style=\"-moz-border-radius:3pt;\""+" class=\""+ClassString+"\">") ;
            context.WriteHtmlText( "<legend class=\""+ClassString+"Title"+"\">"+"Noticia"+"</legend>") ;
            wb_table3_28_0910( true) ;
         }
         return  ;
      }

      protected void wb_table3_28_0910e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</fieldset>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table1_2_0910e( true) ;
         }
         else
         {
            wb_table1_2_0910e( false) ;
         }
      }

      protected void wb_table3_28_0910( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable1_Internalname, tblTable1_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            ClassString = "ErrorViewer" ;
            StyleString = "" ;
            GxWebStd.gx_msg_list( context, "", context.GX_msglist.DisplayMode, StyleString, ClassString, "", "false");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            wb_table4_34_0910( true) ;
         }
         return  ;
      }

      protected void wb_table4_34_0910e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 82,'',false,'',0)\"" ;
            ClassString = "BtnEnter" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, bttBtn_enter_Internalname, "", "Confirmar", bttBtn_enter_Jsonclick, 5, "Confirmar", "", StyleString, ClassString, bttBtn_enter_Visible, 1, "standard", "EENTER.", TempTags, "", context.GetButtonType( ), "HLP_Noticia.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 83,'',false,'',0)\"" ;
            ClassString = "BtnCancel" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, bttBtn_cancel_Internalname, "", "Cancelar", bttBtn_cancel_Jsonclick, 1, "Cancelar", "", StyleString, ClassString, bttBtn_cancel_Visible, 1, "standard", "ECANCEL.", TempTags, "", context.GetButtonType( ), "HLP_Noticia.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 84,'',false,'',0)\"" ;
            ClassString = "BtnDelete" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, bttBtn_delete_Internalname, "", "Eliminar", bttBtn_delete_Jsonclick, 5, "Eliminar", "", StyleString, ClassString, bttBtn_delete_Visible, 0, "standard", "EDELETE.", TempTags, "", context.GetButtonType( ), "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table3_28_0910e( true) ;
         }
         else
         {
            wb_table3_28_0910e( false) ;
         }
      }

      protected void wb_table4_34_0910( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable2_Internalname, tblTable2_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblocknoticiaid_Internalname, "Id", "", "", lblTextblocknoticiaid_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtNoticiaId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A34NoticiaId), 4, 0, ",", "")), ((edtNoticiaId_Enabled!=0) ? StringUtil.LTrim( context.localUtil.Format( (decimal)(A34NoticiaId), "ZZZ9")) : context.localUtil.Format( (decimal)(A34NoticiaId), "ZZZ9")), "", "", "", "", "", "", edtNoticiaId_Jsonclick, 0, ClassString, StyleString, "", 1, edtNoticiaId_Enabled, 0, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "Id", "right", "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblocknoticiafecha_Internalname, "Fecha", "", "", lblTextblocknoticiafecha_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 44,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            context.WriteHtmlText( "<div id=\""+edtNoticiaFecha_Internalname+"_dp_container\" class=\"dp_container\" style=\"white-space:nowrap;display:inline;\">") ;
            GxWebStd.gx_single_line_edit( context, edtNoticiaFecha_Internalname, context.localUtil.Format(A35NoticiaFecha, "99/99/99"), context.localUtil.Format( A35NoticiaFecha, "99/99/99"), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.date.valid_date(this, 8,'DMY',0,24,'spa',false,0);"+";gx.evt.onblur(44);\"", "", "", "", "", "", edtNoticiaFecha_Jsonclick, 0, ClassString, StyleString, "", 1, edtNoticiaFecha_Enabled, 0, "text", "", 8, "chr", 1, "row", 8, 0, 0, 0, 1, -1, true, "", "right", "HLP_Noticia.htm");
            GxWebStd.gx_bitmap( context, edtNoticiaFecha_Internalname+"_dp_trigger", context.GetImagePath( "61b9b5d3-dff6-4d59-9b00-da61bc2cbe93", "", context.GetTheme( )), "", "", "", "", ((1==0)||(edtNoticiaFecha_Enabled==0) ? 0 : 1), 0, "Date selector", "Date selector", 0, 1, 0, "", 0, "", 0, 0, 0, "", "", "cursor: pointer;vertical-align:text-bottom", "", "", "", "", "", "", 1, false, false, "HLP_Noticia.htm");
            context.WriteHtmlTextNl( "</div>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblocknoticiadescripcion_Internalname, "Descripcion", "", "", lblTextblocknoticiadescripcion_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 49,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtNoticiaDescripcion_Internalname, StringUtil.RTrim( A36NoticiaDescripcion), StringUtil.RTrim( context.localUtil.Format( A36NoticiaDescripcion, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(49);\"", "", "", "", "", "", edtNoticiaDescripcion_Jsonclick, 0, ClassString, StyleString, "", 1, edtNoticiaDescripcion_Enabled, 0, "text", "", 40, "chr", 1, "row", 40, 0, 0, 0, 1, -1, true, "", "left", "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblocknoticiapicture_Internalname, "Picture", "", "", lblTextblocknoticiapicture_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            ClassString = "Image" ;
            StyleString = "" ;
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 54,'',false,'',0)\"" ;
            edtNoticiaPicture_Filetype = "tmp" ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaPicture_Internalname, "Filetype", edtNoticiaPicture_Filetype);
            if ( ! String.IsNullOrEmpty(StringUtil.RTrim( A37NoticiaPicture)) )
            {
               gxblobfileaux.Source = A37NoticiaPicture ;
               if ( ! gxblobfileaux.HasExtension() || ( StringUtil.StrCmp(edtNoticiaPicture_Filetype, "tmp") != 0 ) )
               {
                  gxblobfileaux.SetExtension(StringUtil.Trim( edtNoticiaPicture_Filetype));
               }
               if ( gxblobfileaux.ErrCode == 0 )
               {
                  A37NoticiaPicture = gxblobfileaux.GetAbsoluteName() ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A37NoticiaPicture", A37NoticiaPicture);
               }
            }
            GxWebStd.gx_blob_field( context, edtNoticiaPicture_Internalname, StringUtil.RTrim( A37NoticiaPicture), context.PathToRelativeUrl( A37NoticiaPicture), (String.IsNullOrEmpty(StringUtil.RTrim( edtNoticiaPicture_Contenttype)) ? context.GetContentType( (String.IsNullOrEmpty(StringUtil.RTrim( edtNoticiaPicture_Filetype)) ? A37NoticiaPicture : edtNoticiaPicture_Filetype)) : edtNoticiaPicture_Contenttype), false, "", edtNoticiaPicture_Parameters, 0, edtNoticiaPicture_Enabled, 1, "", "", 0, -1, 250, "px", 60, "px", 0, 0, 0, edtNoticiaPicture_Jsonclick, "", StyleString, ClassString, ""+TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(54);\"", "", "", "HLP_Noticia.htm");
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaPicture_Internalname, "URL", context.PathToRelativeUrl( A37NoticiaPicture));
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblocktiponoticiaid_Internalname, "Tipo Noticia Id", "", "", lblTextblocktiponoticiaid_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 59,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtTipoNoticiaId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A10TipoNoticiaId), 4, 0, ",", "")), StringUtil.LTrim( context.localUtil.Format( (decimal)(A10TipoNoticiaId), "ZZZ9")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.num.valid_integer( this,'.');"+";gx.evt.onblur(59);\"", "", "", "", "", "", edtTipoNoticiaId_Jsonclick, 0, ClassString, StyleString, "", 1, edtTipoNoticiaId_Enabled, 1, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "Id", "right", "HLP_Noticia.htm");
            /* Static images/pictures */
            ClassString = "Image" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgprompt_10_Internalname, "prompt.gif", imgprompt_10_Link, "", "", context.GetTheme( ), imgprompt_10_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 0, "", "", StyleString, ClassString, "", "", "", "''", "", 1, false, false, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblocktiponoticiadetalle_Internalname, "Tipo Noticia Detalle", "", "", lblTextblocktiponoticiadetalle_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtTipoNoticiaDetalle_Internalname, StringUtil.RTrim( A12TipoNoticiaDetalle), StringUtil.RTrim( context.localUtil.Format( A12TipoNoticiaDetalle, "")), "", "", "", "", "", "", edtTipoNoticiaDetalle_Jsonclick, 0, ClassString, StyleString, "", 1, edtTipoNoticiaDetalle_Enabled, 0, "text", "", 40, "chr", 1, "row", 40, 0, 0, 0, 1, -1, true, "", "left", "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockagenciaid_Internalname, "Agencia Id", "", "", lblTextblockagenciaid_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 69,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAgenciaId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A29AgenciaId), 4, 0, ",", "")), StringUtil.LTrim( context.localUtil.Format( (decimal)(A29AgenciaId), "ZZZ9")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.num.valid_integer( this,'.');"+";gx.evt.onblur(69);\"", "", "", "", "", "", edtAgenciaId_Jsonclick, 0, ClassString, StyleString, "", 1, edtAgenciaId_Enabled, 1, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "Id", "right", "HLP_Noticia.htm");
            /* Static images/pictures */
            ClassString = "Image" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgprompt_29_Internalname, "prompt.gif", imgprompt_29_Link, "", "", context.GetTheme( ), imgprompt_29_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 0, "", "", StyleString, ClassString, "", "", "", "''", "", 1, false, false, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistarespid_Internalname, "Resp Id", "", "", lblTextblockperiodistarespid_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 74,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaRespId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A32PeriodistaRespId), 4, 0, ",", "")), StringUtil.LTrim( context.localUtil.Format( (decimal)(A32PeriodistaRespId), "ZZZ9")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.num.valid_integer( this,'.');"+";gx.evt.onblur(74);\"", "", "", "", "", "", edtPeriodistaRespId_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaRespId_Enabled, 1, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "Id", "right", "HLP_Noticia.htm");
            /* Static images/pictures */
            ClassString = "Image" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgprompt_32_Internalname, "prompt.gif", imgprompt_32_Link, "", "", context.GetTheme( ), imgprompt_32_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 0, "", "", StyleString, ClassString, "", "", "", "''", "", 1, false, false, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistarespnom_Internalname, "Resp Nom", "", "", lblTextblockperiodistarespnom_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaRespNom_Internalname, StringUtil.RTrim( A33PeriodistaRespNom), StringUtil.RTrim( context.localUtil.Format( A33PeriodistaRespNom, "")), "", "", "", "", "", "", edtPeriodistaRespNom_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaRespNom_Enabled, 0, "text", "", 40, "chr", 1, "row", 40, 0, 0, 0, 1, -1, true, "", "left", "HLP_Noticia.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table4_34_0910e( true) ;
         }
         else
         {
            wb_table4_34_0910e( false) ;
         }
      }

      protected void wb_table2_5_0910( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTabletoolbar_Internalname, tblTabletoolbar_Internalname, "", "ViewTable", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Div Control */
            ClassString = "ToolbarMain" ;
            StyleString = "" ;
            GxWebStd.gx_div_start( context, divSectiontoolbar_Internalname, 1, 0, "px", 0, "px", ClassString);
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 9,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_first_Internalname, context.GetImagePath( "b9e06284-17ac-4c88-8937-5dbd84ad5d80", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_first_Visible, 1, "", "Primero", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_first_Jsonclick, "EFIRST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 10,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_first_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_first_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_first_separator_Jsonclick, "EFIRST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 11,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_previous_Internalname, context.GetImagePath( "7d212604-db7b-4785-9c0d-5faffe71aa33", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_previous_Visible, 1, "", "Anterior", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_previous_Jsonclick, "EPREVIOUS.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 12,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_previous_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_previous_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_previous_separator_Jsonclick, "EPREVIOUS.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 13,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_next_Internalname, context.GetImagePath( "1ae947cf-1354-41a9-8d59-d91daebf554f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_next_Visible, 1, "", "Siguiente", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_next_Jsonclick, "ENEXT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 14,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_next_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_next_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_next_separator_Jsonclick, "ENEXT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 15,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_last_Internalname, context.GetImagePath( "29211874-e613-48e5-9011-8017d984217e", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_last_Visible, 1, "", "Ultimo", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_last_Jsonclick, "ELAST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 16,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_last_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_last_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_last_separator_Jsonclick, "ELAST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 17,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_select_Internalname, context.GetImagePath( "1ca03f75-9947-4d2c-90a4-e8ab9c5cedea", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_select_Visible, 1, "", "Seleccionar", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_select_Jsonclick, "ESELECT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 18,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_select_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_select_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_select_separator_Jsonclick, "ESELECT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 19,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_enter2_Internalname, context.GetImagePath( "2061cf2c-bd33-4433-a13e-34af954142e9", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_enter2_Visible, imgBtn_enter2_Enabled, "", "Confirmar", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_enter2_Jsonclick, "EENTER.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 20,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_enter2_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_enter2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_enter2_separator_Jsonclick, "EENTER.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 21,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_cancel2_Internalname, context.GetImagePath( "0e94ced8-bc34-47ff-9a53-bc683736a686", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_cancel2_Visible, 1, "", "Cancelar", 0, 0, 0, "", 0, "", 0, 0, 1, imgBtn_cancel2_Jsonclick, "ECANCEL.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 22,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_cancel2_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_cancel2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 1, imgBtn_cancel2_separator_Jsonclick, "ECANCEL.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 23,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_delete2_Internalname, context.GetImagePath( "7695fe89-52c9-4b7e-871e-0e11548f823e", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_delete2_Visible, imgBtn_delete2_Enabled, "", "Eliminar", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_delete2_Jsonclick, "EDELETE.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 24,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_delete2_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_delete2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_delete2_separator_Jsonclick, "EDELETE.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Noticia.htm");
            context.WriteHtmlText( "</div>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table2_5_0910e( true) ;
         }
         else
         {
            wb_table2_5_0910e( false) ;
         }
      }

      protected void UserMain( )
      {
         standaloneStartup( ) ;
      }

      protected void standaloneStartup( )
      {
         standaloneStartupServer( ) ;
         disable_std_buttons( ) ;
         enableDisable( ) ;
         Process( ) ;
      }

      protected void standaloneStartupServer( )
      {
         /* Execute Start event if defined. */
         context.wbGlbDoneStart = 0 ;
         /* Execute user event: E11092 */
         E11092 ();
         context.wbGlbDoneStart = 1 ;
         assign_properties_default( ) ;
         if ( AnyError == 0 )
         {
            if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
            {
               /* Read saved SDTs. */
               /* Read variables values. */
               A34NoticiaId = (short)(context.localUtil.CToN( cgiGet( edtNoticiaId_Internalname), ",", ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
               if ( context.localUtil.VCDate( cgiGet( edtNoticiaFecha_Internalname), 2) == 0 )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_faildate", new   object[]  {"Noticia Fecha"}), 1, "NOTICIAFECHA");
                  AnyError = 1 ;
                  GX_FocusControl = edtNoticiaFecha_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A35NoticiaFecha = DateTime.MinValue ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A35NoticiaFecha", context.localUtil.Format(A35NoticiaFecha, "99/99/99"));
               }
               else
               {
                  A35NoticiaFecha = context.localUtil.CToD( cgiGet( edtNoticiaFecha_Internalname), 2) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A35NoticiaFecha", context.localUtil.Format(A35NoticiaFecha, "99/99/99"));
               }
               A36NoticiaDescripcion = cgiGet( edtNoticiaDescripcion_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A36NoticiaDescripcion", A36NoticiaDescripcion);
               A37NoticiaPicture = cgiGet( edtNoticiaPicture_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A37NoticiaPicture", A37NoticiaPicture);
               if ( ( ( context.localUtil.CToN( cgiGet( edtTipoNoticiaId_Internalname), ",", ".") < Convert.ToDecimal( 0 )) ) || ( ( context.localUtil.CToN( cgiGet( edtTipoNoticiaId_Internalname), ",", ".") > Convert.ToDecimal( 9999 )) ) )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_badnum", ""), 1, "TIPONOTICIAID");
                  AnyError = 1 ;
                  GX_FocusControl = edtTipoNoticiaId_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A10TipoNoticiaId = 0 ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
               }
               else
               {
                  A10TipoNoticiaId = (short)(context.localUtil.CToN( cgiGet( edtTipoNoticiaId_Internalname), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
               }
               A12TipoNoticiaDetalle = cgiGet( edtTipoNoticiaDetalle_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
               if ( ( ( context.localUtil.CToN( cgiGet( edtAgenciaId_Internalname), ",", ".") < Convert.ToDecimal( 0 )) ) || ( ( context.localUtil.CToN( cgiGet( edtAgenciaId_Internalname), ",", ".") > Convert.ToDecimal( 9999 )) ) )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_badnum", ""), 1, "AGENCIAID");
                  AnyError = 1 ;
                  GX_FocusControl = edtAgenciaId_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A29AgenciaId = 0 ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
               }
               else
               {
                  A29AgenciaId = (short)(context.localUtil.CToN( cgiGet( edtAgenciaId_Internalname), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
               }
               if ( ( ( context.localUtil.CToN( cgiGet( edtPeriodistaRespId_Internalname), ",", ".") < Convert.ToDecimal( 0 )) ) || ( ( context.localUtil.CToN( cgiGet( edtPeriodistaRespId_Internalname), ",", ".") > Convert.ToDecimal( 9999 )) ) )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_badnum", ""), 1, "PERIODISTARESPID");
                  AnyError = 1 ;
                  GX_FocusControl = edtPeriodistaRespId_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A32PeriodistaRespId = 0 ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
               }
               else
               {
                  A32PeriodistaRespId = (short)(context.localUtil.CToN( cgiGet( edtPeriodistaRespId_Internalname), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
               }
               A33PeriodistaRespNom = cgiGet( edtPeriodistaRespNom_Internalname) ;
               n33PeriodistaRespNom = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
               /* Read saved values. */
               Z34NoticiaId = (short)(context.localUtil.CToN( cgiGet( "Z34NoticiaId"), ",", ".")) ;
               Z35NoticiaFecha = context.localUtil.CToD( cgiGet( "Z35NoticiaFecha"), 0) ;
               Z36NoticiaDescripcion = cgiGet( "Z36NoticiaDescripcion") ;
               Z10TipoNoticiaId = (short)(context.localUtil.CToN( cgiGet( "Z10TipoNoticiaId"), ",", ".")) ;
               Z29AgenciaId = (short)(context.localUtil.CToN( cgiGet( "Z29AgenciaId"), ",", ".")) ;
               Z32PeriodistaRespId = (short)(context.localUtil.CToN( cgiGet( "Z32PeriodistaRespId"), ",", ".")) ;
               IsConfirmed = (short)(context.localUtil.CToN( cgiGet( "IsConfirmed"), ",", ".")) ;
               IsModified = (short)(context.localUtil.CToN( cgiGet( "IsModified"), ",", ".")) ;
               Gx_mode = cgiGet( "Mode") ;
               N10TipoNoticiaId = (short)(context.localUtil.CToN( cgiGet( "N10TipoNoticiaId"), ",", ".")) ;
               N29AgenciaId = (short)(context.localUtil.CToN( cgiGet( "N29AgenciaId"), ",", ".")) ;
               N32PeriodistaRespId = (short)(context.localUtil.CToN( cgiGet( "N32PeriodistaRespId"), ",", ".")) ;
               AV7NoticiaId = (short)(context.localUtil.CToN( cgiGet( "vNOTICIAID"), ",", ".")) ;
               AV12Insert_TipoNoticiaId = (short)(context.localUtil.CToN( cgiGet( "vINSERT_TIPONOTICIAID"), ",", ".")) ;
               AV13Insert_AgenciaId = (short)(context.localUtil.CToN( cgiGet( "vINSERT_AGENCIAID"), ",", ".")) ;
               AV14Insert_PeriodistaRespId = (short)(context.localUtil.CToN( cgiGet( "vINSERT_PERIODISTARESPID"), ",", ".")) ;
               AV16Pgmname = cgiGet( "vPGMNAME") ;
               Gx_mode = cgiGet( "vMODE") ;
               edtNoticiaPicture_Filename = cgiGet( "NOTICIAPICTURE_Filename") ;
               edtNoticiaPicture_Filetype = cgiGet( "NOTICIAPICTURE_Filetype") ;
               /* Read subfile selected row values. */
               /* Read hidden variables. */
               if ( ! String.IsNullOrEmpty(StringUtil.RTrim( A37NoticiaPicture)) )
               {
                  edtNoticiaPicture_Filename = (String)(CGIGetFileName(edtNoticiaPicture_Internalname)) ;
                  edtNoticiaPicture_Filetype = (String)(CGIGetFileType(edtNoticiaPicture_Internalname)) ;
               }
               if ( String.IsNullOrEmpty(StringUtil.RTrim( A37NoticiaPicture)) )
               {
                  A37NoticiaPicture = cgiGet( "gxBlobNOTICIAPICTURE") ;
               }
               standaloneNotModal( ) ;
            }
            else
            {
               standaloneNotModal( ) ;
               if ( StringUtil.StrCmp(gxfirstwebparm, "viewer") == 0 )
               {
                  Gx_mode = "DSP" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  A34NoticiaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
                  getEqualNoModal( ) ;
                  Gx_mode = "DSP" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  disable_std_buttons( ) ;
                  standaloneModal( ) ;
               }
               else
               {
                  if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
                  {
                     sMode10 = Gx_mode ;
                     Gx_mode = "UPD" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                     Gx_mode = sMode10 ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  }
                  standaloneModal( ) ;
                  if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
                  {
                     getByPrimaryKey( ) ;
                     if ( RcdFound10 == 1 )
                     {
                        if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
                        {
                           /* Confirm record */
                           CONFIRM_090( ) ;
                           if ( AnyError == 0 )
                           {
                              GX_FocusControl = bttBtn_enter_Internalname ;
                              context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_noinsert", ""), 1, "NOTICIAID");
                        AnyError = 1 ;
                     }
                  }
               }
            }
         }
      }

      protected void Process( )
      {
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
            /* Read Transaction buttons. */
            sEvt = cgiGet( "_EventName") ;
            EvtGridId = cgiGet( "_EventGridId") ;
            EvtRowId = cgiGet( "_EventRowId") ;
            if ( StringUtil.Len( sEvt) > 0 )
            {
               sEvtType = StringUtil.Left( sEvt, 1) ;
               sEvt = StringUtil.Right( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
               if ( StringUtil.StrCmp(sEvtType, "M") != 0 )
               {
                  if ( StringUtil.StrCmp(sEvtType, "E") == 0 )
                  {
                     sEvtType = StringUtil.Right( sEvt, 1) ;
                     if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                     {
                        sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
                        if ( StringUtil.StrCmp(sEvt, "START") == 0 )
                        {
                           context.wbHandled = 1 ;
                           dynload_actions( ) ;
                           /* Execute user event: E11092 */
                           E11092 ();
                        }
                        else if ( StringUtil.StrCmp(sEvt, "AFTER TRN") == 0 )
                        {
                           context.wbHandled = 1 ;
                           dynload_actions( ) ;
                           /* Execute user event: E12092 */
                           E12092 ();
                        }
                        else if ( StringUtil.StrCmp(sEvt, "ENTER") == 0 )
                        {
                           context.wbHandled = 1 ;
                           if ( StringUtil.StrCmp(Gx_mode, "DSP") != 0 )
                           {
                              btn_enter( ) ;
                           }
                           /* No code required for Cancel button. It is implemented as the Reset button. */
                        }
                        else if ( StringUtil.StrCmp(sEvt, "FIRST") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "PREVIOUS") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "NEXT") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "LAST") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "SELECT") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "DELETE") == 0 )
                        {
                           context.wbHandled = 1 ;
                           if ( StringUtil.StrCmp(Gx_mode, "DSP") != 0 )
                           {
                              btn_delete( ) ;
                           }
                        }
                     }
                     else
                     {
                     }
                  }
                  context.wbHandled = 1 ;
               }
            }
         }
      }

      protected void AfterTrn( )
      {
         if ( trnEnded == 1 )
         {
            /* Execute user event: E12092 */
            E12092 ();
            trnEnded = 0 ;
            standaloneNotModal( ) ;
            standaloneModal( ) ;
            if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )  )
            {
               /* Clear variables for new insertion. */
               InitAll0910( ) ;
               standaloneNotModal( ) ;
               standaloneModal( ) ;
            }
         }
      }

      public override String ToString( )
      {
         return "" ;
      }

      public GxContentInfo GetContentInfo( )
      {
         return (GxContentInfo)(null) ;
      }

      protected void disable_std_buttons( )
      {
         imgBtn_delete2_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Visible), 5, 0)));
         imgBtn_delete2_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_separator_Visible), 5, 0)));
         bttBtn_delete_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_delete_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_delete_Visible), 5, 0)));
         imgBtn_first_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_first_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_first_Visible), 5, 0)));
         imgBtn_first_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_first_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_first_separator_Visible), 5, 0)));
         imgBtn_previous_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_previous_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_previous_Visible), 5, 0)));
         imgBtn_previous_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_previous_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_previous_separator_Visible), 5, 0)));
         imgBtn_next_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_next_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_next_Visible), 5, 0)));
         imgBtn_next_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_next_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_next_separator_Visible), 5, 0)));
         imgBtn_last_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_last_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_last_Visible), 5, 0)));
         imgBtn_last_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_last_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_last_separator_Visible), 5, 0)));
         imgBtn_select_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_select_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_select_Visible), 5, 0)));
         imgBtn_select_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_select_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_select_separator_Visible), 5, 0)));
         if ( ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
         {
            imgBtn_delete2_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Visible), 5, 0)));
            imgBtn_delete2_separator_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_separator_Visible), 5, 0)));
            bttBtn_delete_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_delete_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_delete_Visible), 5, 0)));
            if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
            {
               imgBtn_enter2_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Visible), 5, 0)));
               imgBtn_enter2_separator_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_separator_Visible), 5, 0)));
               bttBtn_enter_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_enter_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_enter_Visible), 5, 0)));
            }
            DisableAttributes0910( ) ;
         }
      }

      protected void set_caption( )
      {
         if ( ( IsConfirmed == 1 ) && ( AnyError == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_confdelete", ""), 0, "");
            }
            else
            {
               GX_msglist.addItem(context.GetMessage( "GXM_mustconfirm", ""), 0, "");
            }
         }
      }

      protected void CONFIRM_090( )
      {
         BeforeValidate0910( ) ;
         if ( AnyError == 0 )
         {
            if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               OnDeleteControls0910( ) ;
            }
            else
            {
               CheckExtendedTable0910( ) ;
               CloseExtendedTableCursors0910( ) ;
            }
         }
         if ( AnyError == 0 )
         {
            IsConfirmed = 1 ;
         }
      }

      protected void ResetCaption090( )
      {
      }

      protected void E11092( )
      {
         /* Start Routine */
         new isauthorized(context ).execute(  AV16Pgmname, out  AV9IsAuthorized) ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV16Pgmname", AV16Pgmname);
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV9IsAuthorized", StringUtil.BoolToStr( AV9IsAuthorized));
         if ( ! AV9IsAuthorized )
         {
            context.wjLoc = formatLink("notauthorized.aspx") + "?" + UrlEncode(StringUtil.RTrim(AV16Pgmname)) ;
         }
         AV10TrnContext.FromXml(AV11WebSession.Get("TrnContext"), "");
         AV12Insert_TipoNoticiaId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV12Insert_TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV12Insert_TipoNoticiaId), 4, 0)));
         AV13Insert_AgenciaId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV13Insert_AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV13Insert_AgenciaId), 4, 0)));
         AV14Insert_PeriodistaRespId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV14Insert_PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV14Insert_PeriodistaRespId), 4, 0)));
         if ( ( StringUtil.StrCmp(AV10TrnContext.gxTpr_Transactionname, AV16Pgmname) == 0 ) && ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) )
         {
            AV17GXV1 = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV17GXV1", StringUtil.LTrim( StringUtil.Str( (decimal)(AV17GXV1), 8, 0)));
            while ( AV17GXV1 <= AV10TrnContext.gxTpr_Attributes.Count )
            {
               AV15TrnContextAtt = ((SdtTransactionContext_Attribute)AV10TrnContext.gxTpr_Attributes.Item(AV17GXV1)) ;
               if ( StringUtil.StrCmp(AV15TrnContextAtt.gxTpr_Attributename, "TipoNoticiaId") == 0 )
               {
                  AV12Insert_TipoNoticiaId = (short)(NumberUtil.Val( AV15TrnContextAtt.gxTpr_Attributevalue, ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV12Insert_TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV12Insert_TipoNoticiaId), 4, 0)));
               }
               else if ( StringUtil.StrCmp(AV15TrnContextAtt.gxTpr_Attributename, "AgenciaId") == 0 )
               {
                  AV13Insert_AgenciaId = (short)(NumberUtil.Val( AV15TrnContextAtt.gxTpr_Attributevalue, ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV13Insert_AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV13Insert_AgenciaId), 4, 0)));
               }
               else if ( StringUtil.StrCmp(AV15TrnContextAtt.gxTpr_Attributename, "PeriodistaRespId") == 0 )
               {
                  AV14Insert_PeriodistaRespId = (short)(NumberUtil.Val( AV15TrnContextAtt.gxTpr_Attributevalue, ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV14Insert_PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV14Insert_PeriodistaRespId), 4, 0)));
               }
               AV17GXV1 = (int)(AV17GXV1+1) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV17GXV1", StringUtil.LTrim( StringUtil.Str( (decimal)(AV17GXV1), 8, 0)));
            }
         }
      }

      protected void E12092( )
      {
         /* After Trn Routine */
         if ( ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) && ! AV10TrnContext.gxTpr_Callerondelete )
         {
            context.wjLoc = formatLink("wwnoticia.aspx")  ;
         }
         context.setWebReturnParms(new Object[] {});
         context.nUserReturn = 1 ;
         returnInSub = true;
         if (true) return;
      }

      protected void ZM0910( short GX_JID )
      {
         if ( ( GX_JID == 15 ) || ( GX_JID == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
            {
               Z35NoticiaFecha = T00093_A35NoticiaFecha[0] ;
               Z36NoticiaDescripcion = T00093_A36NoticiaDescripcion[0] ;
               Z10TipoNoticiaId = T00093_A10TipoNoticiaId[0] ;
               Z29AgenciaId = T00093_A29AgenciaId[0] ;
               Z32PeriodistaRespId = T00093_A32PeriodistaRespId[0] ;
            }
            else
            {
               Z35NoticiaFecha = A35NoticiaFecha ;
               Z36NoticiaDescripcion = A36NoticiaDescripcion ;
               Z10TipoNoticiaId = A10TipoNoticiaId ;
               Z29AgenciaId = A29AgenciaId ;
               Z32PeriodistaRespId = A32PeriodistaRespId ;
            }
         }
         if ( GX_JID == -15 )
         {
            Z34NoticiaId = A34NoticiaId ;
            Z35NoticiaFecha = A35NoticiaFecha ;
            Z36NoticiaDescripcion = A36NoticiaDescripcion ;
            Z37NoticiaPicture = A37NoticiaPicture ;
            Z10TipoNoticiaId = A10TipoNoticiaId ;
            Z29AgenciaId = A29AgenciaId ;
            Z32PeriodistaRespId = A32PeriodistaRespId ;
            Z12TipoNoticiaDetalle = A12TipoNoticiaDetalle ;
            Z33PeriodistaRespNom = A33PeriodistaRespNom ;
         }
      }

      protected void standaloneNotModal( )
      {
         edtNoticiaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtNoticiaId_Enabled), 5, 0)));
         imgprompt_10_Link = ((StringUtil.StrCmp(Gx_mode, "DSP")==0) ? "" : "javascript:"+"gx.popup.openPrompt('"+"gx0040.aspx"+"',["+"{Ctrl:gx.dom.el('"+"TIPONOTICIAID"+"'), id:'"+"TIPONOTICIAID"+"'"+",isOut: true}"+"],"+"null"+","+"'', false"+","+"false"+");") ;
         imgprompt_29_Link = ((StringUtil.StrCmp(Gx_mode, "DSP")==0) ? "" : "javascript:"+"gx.popup.openPrompt('"+"gx0090.aspx"+"',["+"{Ctrl:gx.dom.el('"+"AGENCIAID"+"'), id:'"+"AGENCIAID"+"'"+",isOut: true}"+"],"+"null"+","+"'', false"+","+"false"+");") ;
         imgprompt_32_Link = ((StringUtil.StrCmp(Gx_mode, "DSP")==0) ? "" : "javascript:"+"gx.popup.openPrompt('"+"gx00b0.aspx"+"',["+"{Ctrl:gx.dom.el('"+"PERIODISTARESPID"+"'), id:'"+"PERIODISTARESPID"+"'"+",isOut: true}"+"],"+"null"+","+"'', false"+","+"false"+");") ;
         edtNoticiaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtNoticiaId_Enabled), 5, 0)));
         imgBtn_delete2_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Enabled), 5, 0)));
         if ( ! (0==AV7NoticiaId) )
         {
            A34NoticiaId = AV7NoticiaId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
         }
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ! (0==AV12Insert_TipoNoticiaId) )
         {
            edtTipoNoticiaId_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtTipoNoticiaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtTipoNoticiaId_Enabled), 5, 0)));
         }
         else
         {
            edtTipoNoticiaId_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtTipoNoticiaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtTipoNoticiaId_Enabled), 5, 0)));
         }
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ! (0==AV13Insert_AgenciaId) )
         {
            edtAgenciaId_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAgenciaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAgenciaId_Enabled), 5, 0)));
         }
         else
         {
            edtAgenciaId_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAgenciaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAgenciaId_Enabled), 5, 0)));
         }
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ! (0==AV14Insert_PeriodistaRespId) )
         {
            edtPeriodistaRespId_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaRespId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaRespId_Enabled), 5, 0)));
         }
         else
         {
            edtPeriodistaRespId_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaRespId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaRespId_Enabled), 5, 0)));
         }
      }

      protected void standaloneModal( )
      {
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ! (0==AV14Insert_PeriodistaRespId) )
         {
            A32PeriodistaRespId = AV14Insert_PeriodistaRespId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
         }
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ! (0==AV13Insert_AgenciaId) )
         {
            A29AgenciaId = AV13Insert_AgenciaId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
         }
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ! (0==AV12Insert_TipoNoticiaId) )
         {
            A10TipoNoticiaId = AV12Insert_TipoNoticiaId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
         }
         if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
         {
            imgBtn_enter2_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Enabled), 5, 0)));
         }
         else
         {
            imgBtn_enter2_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Enabled), 5, 0)));
         }
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 ) && ( Gx_BScreen == 0 ) )
         {
            AV16Pgmname = "Noticia" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV16Pgmname", AV16Pgmname);
            /* Using cursor T00096 */
            pr_default.execute(4, new Object[] {A32PeriodistaRespId});
            A33PeriodistaRespNom = T00096_A33PeriodistaRespNom[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
            n33PeriodistaRespNom = T00096_n33PeriodistaRespNom[0] ;
            pr_default.close(4);
            /* Using cursor T00094 */
            pr_default.execute(2, new Object[] {A10TipoNoticiaId});
            A12TipoNoticiaDetalle = T00094_A12TipoNoticiaDetalle[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
            pr_default.close(2);
         }
      }

      protected void Load0910( )
      {
         /* Using cursor T00097 */
         pr_default.execute(5, new Object[] {A34NoticiaId});
         if ( (pr_default.getStatus(5) != 101) )
         {
            RcdFound10 = 1 ;
            A35NoticiaFecha = T00097_A35NoticiaFecha[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A35NoticiaFecha", context.localUtil.Format(A35NoticiaFecha, "99/99/99"));
            A36NoticiaDescripcion = T00097_A36NoticiaDescripcion[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A36NoticiaDescripcion", A36NoticiaDescripcion);
            A12TipoNoticiaDetalle = T00097_A12TipoNoticiaDetalle[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
            A33PeriodistaRespNom = T00097_A33PeriodistaRespNom[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
            n33PeriodistaRespNom = T00097_n33PeriodistaRespNom[0] ;
            A10TipoNoticiaId = T00097_A10TipoNoticiaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
            A29AgenciaId = T00097_A29AgenciaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
            A32PeriodistaRespId = T00097_A32PeriodistaRespId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
            A37NoticiaPicture = T00097_A37NoticiaPicture[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A37NoticiaPicture", A37NoticiaPicture);
            ZM0910( -15) ;
         }
         pr_default.close(5);
         OnLoadActions0910( ) ;
      }

      protected void OnLoadActions0910( )
      {
         AV16Pgmname = "Noticia" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV16Pgmname", AV16Pgmname);
      }

      protected void CheckExtendedTable0910( )
      {
         Gx_BScreen = 1 ;
         standaloneModal( ) ;
         AV16Pgmname = "Noticia" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV16Pgmname", AV16Pgmname);
         if ( ! ( (DateTime.MinValue==A35NoticiaFecha) || ( A35NoticiaFecha >= context.localUtil.YMDToD( 1753, 1, 1) ) ) )
         {
            GX_msglist.addItem("Campo Noticia Fecha fuera de rango", "OutOfRange", 1, "NOTICIAFECHA");
            AnyError = 1 ;
            GX_FocusControl = edtNoticiaFecha_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         /* Using cursor T00094 */
         pr_default.execute(2, new Object[] {A10TipoNoticiaId});
         if ( (pr_default.getStatus(2) == 101) )
         {
            AnyError10 = 1 ;
            GX_msglist.addItem("No existe 'Tipo Noticia'.", "ForeignKeyNotFound", 1, "TIPONOTICIAID");
            AnyError = 1 ;
            GX_FocusControl = edtTipoNoticiaId_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError10 == 0 )
         {
            A12TipoNoticiaDetalle = T00094_A12TipoNoticiaDetalle[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
         }
         pr_default.close(2);
         /* Using cursor T00095 */
         pr_default.execute(3, new Object[] {A29AgenciaId});
         if ( (pr_default.getStatus(3) == 101) )
         {
            AnyError29 = 1 ;
            GX_msglist.addItem("No existe 'Agencia'.", "ForeignKeyNotFound", 1, "AGENCIAID");
            AnyError = 1 ;
            GX_FocusControl = edtAgenciaId_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError29 == 0 )
         {
         }
         pr_default.close(3);
         /* Using cursor T00096 */
         pr_default.execute(4, new Object[] {A32PeriodistaRespId});
         if ( (pr_default.getStatus(4) == 101) )
         {
            AnyError32 = 1 ;
            GX_msglist.addItem("No existe 'Periodista Resp'.", "ForeignKeyNotFound", 1, "PERIODISTARESPID");
            AnyError = 1 ;
            GX_FocusControl = edtPeriodistaRespId_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError32 == 0 )
         {
            A33PeriodistaRespNom = T00096_A33PeriodistaRespNom[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
            n33PeriodistaRespNom = T00096_n33PeriodistaRespNom[0] ;
         }
         pr_default.close(4);
      }

      protected void CloseExtendedTableCursors0910( )
      {
         pr_default.close(2);
         pr_default.close(3);
         pr_default.close(4);
      }

      protected void enableDisable( )
      {
      }

      protected void gxLoad_16( short A10TipoNoticiaId )
      {
         /* Using cursor T00098 */
         pr_default.execute(6, new Object[] {A10TipoNoticiaId});
         if ( (pr_default.getStatus(6) == 101) )
         {
            AnyError10 = 1 ;
            GX_msglist.addItem("No existe 'Tipo Noticia'.", "ForeignKeyNotFound", 1, "TIPONOTICIAID");
            AnyError = 1 ;
            GX_FocusControl = edtTipoNoticiaId_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError10 == 0 )
         {
            A12TipoNoticiaDetalle = T00098_A12TipoNoticiaDetalle[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
         }
         GxWebStd.set_html_headers( context, 0, "", "");
         context.GX_webresponse.AddString("new Array( new Array(");
         context.GX_webresponse.AddString("\""+GXUtil.EncodeJSConstant( StringUtil.RTrim( A12TipoNoticiaDetalle))+"\"");
         context.GX_webresponse.AddString(")");
         if ( (pr_default.getStatus(6) == 101) )
         {
            context.GX_webresponse.AddString(",");
            context.GX_webresponse.AddString("101");
         }
         context.GX_webresponse.AddString(")");
         pr_default.close(6);
      }

      protected void gxLoad_17( short A29AgenciaId )
      {
         /* Using cursor T00099 */
         pr_default.execute(7, new Object[] {A29AgenciaId});
         if ( (pr_default.getStatus(7) == 101) )
         {
            AnyError29 = 1 ;
            GX_msglist.addItem("No existe 'Agencia'.", "ForeignKeyNotFound", 1, "AGENCIAID");
            AnyError = 1 ;
            GX_FocusControl = edtAgenciaId_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError29 == 0 )
         {
         }
         GxWebStd.set_html_headers( context, 0, "", "");
         context.GX_webresponse.AddString("new Array( new Array(");
         context.GX_webresponse.AddString("");
         context.GX_webresponse.AddString(")");
         if ( (pr_default.getStatus(7) == 101) )
         {
            context.GX_webresponse.AddString(",");
            context.GX_webresponse.AddString("101");
         }
         context.GX_webresponse.AddString(")");
         pr_default.close(7);
      }

      protected void gxLoad_18( short A32PeriodistaRespId )
      {
         /* Using cursor T000910 */
         pr_default.execute(8, new Object[] {A32PeriodistaRespId});
         if ( (pr_default.getStatus(8) == 101) )
         {
            AnyError32 = 1 ;
            GX_msglist.addItem("No existe 'Periodista Resp'.", "ForeignKeyNotFound", 1, "PERIODISTARESPID");
            AnyError = 1 ;
            GX_FocusControl = edtPeriodistaRespId_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError32 == 0 )
         {
            A33PeriodistaRespNom = T000910_A33PeriodistaRespNom[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
            n33PeriodistaRespNom = T000910_n33PeriodistaRespNom[0] ;
         }
         GxWebStd.set_html_headers( context, 0, "", "");
         context.GX_webresponse.AddString("new Array( new Array(");
         context.GX_webresponse.AddString("\""+GXUtil.EncodeJSConstant( StringUtil.RTrim( A33PeriodistaRespNom))+"\"");
         context.GX_webresponse.AddString(")");
         if ( (pr_default.getStatus(8) == 101) )
         {
            context.GX_webresponse.AddString(",");
            context.GX_webresponse.AddString("101");
         }
         context.GX_webresponse.AddString(")");
         pr_default.close(8);
      }

      protected void GetKey0910( )
      {
         /* Using cursor T000911 */
         pr_default.execute(9, new Object[] {A34NoticiaId});
         if ( (pr_default.getStatus(9) != 101) )
         {
            RcdFound10 = 1 ;
         }
         else
         {
            RcdFound10 = 0 ;
         }
         pr_default.close(9);
      }

      protected void getByPrimaryKey( )
      {
         /* Using cursor T00093 */
         pr_default.execute(1, new Object[] {A34NoticiaId});
         if ( (pr_default.getStatus(1) != 101) )
         {
            ZM0910( 15) ;
            RcdFound10 = 1 ;
            A34NoticiaId = T00093_A34NoticiaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
            A35NoticiaFecha = T00093_A35NoticiaFecha[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A35NoticiaFecha", context.localUtil.Format(A35NoticiaFecha, "99/99/99"));
            A36NoticiaDescripcion = T00093_A36NoticiaDescripcion[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A36NoticiaDescripcion", A36NoticiaDescripcion);
            A10TipoNoticiaId = T00093_A10TipoNoticiaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
            A29AgenciaId = T00093_A29AgenciaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
            A32PeriodistaRespId = T00093_A32PeriodistaRespId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
            A37NoticiaPicture = T00093_A37NoticiaPicture[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A37NoticiaPicture", A37NoticiaPicture);
            Z34NoticiaId = A34NoticiaId ;
            sMode10 = Gx_mode ;
            Gx_mode = "" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            Load0910( ) ;
            Gx_mode = sMode10 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         else
         {
            RcdFound10 = 0 ;
            InitializeNonKey0910( ) ;
            sMode10 = Gx_mode ;
            Gx_mode = "" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            standaloneModal( ) ;
            Gx_mode = sMode10 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         pr_default.close(1);
      }

      protected void getEqualNoModal( )
      {
         GetKey0910( ) ;
         if ( RcdFound10 == 0 )
         {
         }
         else
         {
         }
         getByPrimaryKey( ) ;
      }

      protected void move_next( )
      {
         RcdFound10 = 0 ;
         /* Using cursor T000912 */
         pr_default.execute(10, new Object[] {A34NoticiaId});
         if ( (pr_default.getStatus(10) != 101) )
         {
            while ( (pr_default.getStatus(10) != 101) && ( ( T000912_A34NoticiaId[0] < A34NoticiaId ) ) )
            {
               pr_default.readNext(10);
            }
            if ( (pr_default.getStatus(10) != 101) && ( ( T000912_A34NoticiaId[0] > A34NoticiaId ) ) )
            {
               A34NoticiaId = T000912_A34NoticiaId[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
               RcdFound10 = 1 ;
            }
         }
         pr_default.close(1);
      }

      protected void move_previous( )
      {
         RcdFound10 = 0 ;
         /* Using cursor T000913 */
         pr_default.execute(11, new Object[] {A34NoticiaId});
         if ( (pr_default.getStatus(11) != 101) )
         {
            while ( (pr_default.getStatus(11) != 101) && ( ( T000913_A34NoticiaId[0] > A34NoticiaId ) ) )
            {
               pr_default.readNext(11);
            }
            if ( (pr_default.getStatus(11) != 101) && ( ( T000913_A34NoticiaId[0] < A34NoticiaId ) ) )
            {
               A34NoticiaId = T000913_A34NoticiaId[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
               RcdFound10 = 1 ;
            }
         }
         pr_default.close(0);
      }

      protected void btn_enter( )
      {
         nKeyPressed = 1 ;
         GetKey0910( ) ;
         if ( RcdFound10 == 1 )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "NOTICIAID");
               AnyError = 1 ;
            }
            else if ( A34NoticiaId != Z34NoticiaId )
            {
               A34NoticiaId = Z34NoticiaId ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
               GX_msglist.addItem(context.GetMessage( "GXM_getbeforeupd", ""), "CandidateKeyNotFound", 1, "NOTICIAID");
               AnyError = 1 ;
            }
            else if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               delete( ) ;
               AfterTrn( ) ;
               GX_FocusControl = edtNoticiaFecha_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
            else
            {
               /* Update record */
               Update0910( ) ;
               GX_FocusControl = edtNoticiaFecha_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
         }
         else
         {
            if ( A34NoticiaId != Z34NoticiaId )
            {
               /* Insert record */
               GX_FocusControl = edtNoticiaFecha_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
               Insert0910( ) ;
               if ( AnyError == 1 )
               {
                  GX_FocusControl = "" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
               }
            }
            else
            {
               if ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_recdeleted", ""), 1, "NOTICIAID");
                  AnyError = 1 ;
               }
               else
               {
                  /* Insert record */
                  GX_FocusControl = edtNoticiaFecha_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  Insert0910( ) ;
                  if ( AnyError == 1 )
                  {
                     GX_FocusControl = "" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  }
               }
            }
         }
         AfterTrn( ) ;
         if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
         {
            if ( AnyError == 0 )
            {
               context.nUserReturn = 1 ;
            }
         }
      }

      protected void btn_delete( )
      {
         if ( A34NoticiaId != Z34NoticiaId )
         {
            A34NoticiaId = Z34NoticiaId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
            GX_msglist.addItem(context.GetMessage( "GXM_getbeforedlt", ""), 1, "NOTICIAID");
            AnyError = 1 ;
         }
         else
         {
            delete( ) ;
            AfterTrn( ) ;
            GX_FocusControl = edtNoticiaFecha_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError != 0 )
         {
         }
      }

      protected void CheckOptimisticConcurrency0910( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            /* Using cursor T000914 */
            pr_default.execute(12, new Object[] {A34NoticiaId});
            if ( (pr_default.getStatus(12) == 103) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"Noticia"}), "RecordIsLocked", 1, "");
               AnyError = 1 ;
               return  ;
            }
            if ( (pr_default.getStatus(12) == 101) || ( Z35NoticiaFecha != T000914_A35NoticiaFecha[0] ) || ( StringUtil.StrCmp(Z36NoticiaDescripcion, T000914_A36NoticiaDescripcion[0]) != 0 ) || ( Z10TipoNoticiaId != T000914_A10TipoNoticiaId[0] ) || ( Z29AgenciaId != T000914_A29AgenciaId[0] ) || ( Z32PeriodistaRespId != T000914_A32PeriodistaRespId[0] ) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_waschg", new   object[]  {"Noticia"}), "RecordWasChanged", 1, "");
               AnyError = 1 ;
               return  ;
            }
         }
      }

      protected void Insert0910( )
      {
         BeforeValidate0910( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable0910( ) ;
         }
         if ( AnyError == 0 )
         {
            ZM0910( 0) ;
            CheckOptimisticConcurrency0910( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm0910( ) ;
               if ( AnyError == 0 )
               {
                  BeforeInsert0910( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000915 */
                     pr_default.execute(13, new Object[] {A35NoticiaFecha, A36NoticiaDescripcion, A37NoticiaPicture, A10TipoNoticiaId, A29AgenciaId, A32PeriodistaRespId});
                     pr_default.close(13);
                     /* Retrieving last key number assigned */
                     /* Using cursor T000916 */
                     pr_default.execute(14);
                     A34NoticiaId = T000916_A34NoticiaId[0] ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
                     pr_default.close(14);
                     dsDefault.SmartCacheProvider.SetUpdated("Noticia") ;
                     if ( AnyError == 0 )
                     {
                        /* Start of After( Insert) rules */
                        /* End of After( Insert) rules */
                        if ( AnyError == 0 )
                        {
                           /* Save values for previous() function. */
                           GX_msglist.addItem(context.GetMessage( "GXM_sucadded", ""), 0, "");
                           ResetCaption090( ) ;
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp", ""), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
            else
            {
               Load0910( ) ;
            }
            EndLevel0910( ) ;
         }
         CloseExtendedTableCursors0910( ) ;
      }

      protected void Update0910( )
      {
         BeforeValidate0910( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable0910( ) ;
         }
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency0910( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm0910( ) ;
               if ( AnyError == 0 )
               {
                  BeforeUpdate0910( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000917 */
                     pr_default.execute(15, new Object[] {A35NoticiaFecha, A36NoticiaDescripcion, A10TipoNoticiaId, A29AgenciaId, A32PeriodistaRespId, A34NoticiaId});
                     pr_default.close(15);
                     dsDefault.SmartCacheProvider.SetUpdated("Noticia") ;
                     if ( (pr_default.getStatus(15) == 103) )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"Noticia"}), "RecordIsLocked", 1, "");
                        AnyError = 1 ;
                     }
                     DeferredUpdate0910( ) ;
                     if ( AnyError == 0 )
                     {
                        /* Start of After( update) rules */
                        /* End of After( update) rules */
                        if ( AnyError == 0 )
                        {
                           if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
                           {
                              if ( AnyError == 0 )
                              {
                                 context.nUserReturn = 1 ;
                              }
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_unexp", ""), 1, "");
                        AnyError = 1 ;
                     }
                  }
               }
            }
            EndLevel0910( ) ;
         }
         CloseExtendedTableCursors0910( ) ;
      }

      protected void DeferredUpdate0910( )
      {
         if ( AnyError == 0 )
         {
            /* Using cursor T000918 */
            pr_default.execute(16, new Object[] {A37NoticiaPicture, A34NoticiaId});
            pr_default.close(16);
            dsDefault.SmartCacheProvider.SetUpdated("Noticia") ;
         }
      }

      protected void delete( )
      {
         BeforeValidate0910( ) ;
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency0910( ) ;
         }
         if ( AnyError == 0 )
         {
            OnDeleteControls0910( ) ;
            AfterConfirm0910( ) ;
            if ( AnyError == 0 )
            {
               BeforeDelete0910( ) ;
               if ( AnyError == 0 )
               {
                  /* No cascading delete specified. */
                  /* Using cursor T000919 */
                  pr_default.execute(17, new Object[] {A34NoticiaId});
                  pr_default.close(17);
                  dsDefault.SmartCacheProvider.SetUpdated("Noticia") ;
                  if ( AnyError == 0 )
                  {
                     /* Start of After( delete) rules */
                     /* End of After( delete) rules */
                     if ( AnyError == 0 )
                     {
                        if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
                        {
                           if ( AnyError == 0 )
                           {
                              context.nUserReturn = 1 ;
                           }
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp", ""), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
         }
         sMode10 = Gx_mode ;
         Gx_mode = "DLT" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         EndLevel0910( ) ;
         Gx_mode = sMode10 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
      }

      protected void OnDeleteControls0910( )
      {
         standaloneModal( ) ;
         if ( AnyError == 0 )
         {
            /* Delete mode formulas */
            AV16Pgmname = "Noticia" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV16Pgmname", AV16Pgmname);
            /* Using cursor T000920 */
            pr_default.execute(18, new Object[] {A10TipoNoticiaId});
            A12TipoNoticiaDetalle = T000920_A12TipoNoticiaDetalle[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
            pr_default.close(18);
            /* Using cursor T000921 */
            pr_default.execute(19, new Object[] {A32PeriodistaRespId});
            A33PeriodistaRespNom = T000921_A33PeriodistaRespNom[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
            n33PeriodistaRespNom = T000921_n33PeriodistaRespNom[0] ;
            pr_default.close(19);
         }
      }

      protected void EndLevel0910( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            pr_default.close(12);
         }
         if ( AnyError == 0 )
         {
            BeforeComplete0910( ) ;
         }
         if ( AnyError == 0 )
         {
            pr_default.close(11);
            pr_default.close(10);
            pr_default.close(18);
            pr_default.close(19);
            context.CommitDataStores("Noticia");
            if ( AnyError == 0 )
            {
               ConfirmValues090( ) ;
            }
            /* After transaction rules */
            /* Execute 'After Trn' event if defined. */
            trnEnded = 1 ;
         }
         else
         {
            pr_default.close(11);
            pr_default.close(10);
            pr_default.close(18);
            pr_default.close(19);
            context.RollbackDataStores("Noticia");
         }
         IsModified = 0 ;
         if ( AnyError != 0 )
         {
            context.wjLoc = "" ;
            context.nUserReturn = 0 ;
         }
      }

      public void ScanStart0910( )
      {
         /* Scan By routine */
         /* Using cursor T000922 */
         pr_default.execute(20);
         RcdFound10 = 0 ;
         if ( (pr_default.getStatus(20) != 101) )
         {
            RcdFound10 = 1 ;
            A34NoticiaId = T000922_A34NoticiaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
         }
         /* Load Subordinate Levels */
      }

      protected void ScanNext0910( )
      {
         /* Scan next routine */
         pr_default.readNext(20);
         RcdFound10 = 0 ;
         if ( (pr_default.getStatus(20) != 101) )
         {
            RcdFound10 = 1 ;
            A34NoticiaId = T000922_A34NoticiaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
         }
      }

      protected void ScanEnd0910( )
      {
      }

      protected void AfterConfirm0910( )
      {
         /* After Confirm Rules */
      }

      protected void BeforeInsert0910( )
      {
         /* Before Insert Rules */
      }

      protected void BeforeUpdate0910( )
      {
         /* Before Update Rules */
      }

      protected void BeforeDelete0910( )
      {
         /* Before Delete Rules */
      }

      protected void BeforeComplete0910( )
      {
         /* Before Complete Rules */
      }

      protected void BeforeValidate0910( )
      {
         /* Before Validate Rules */
      }

      protected void DisableAttributes0910( )
      {
         edtNoticiaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtNoticiaId_Enabled), 5, 0)));
         edtNoticiaFecha_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtNoticiaFecha_Enabled), 5, 0)));
         edtNoticiaDescripcion_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaDescripcion_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtNoticiaDescripcion_Enabled), 5, 0)));
         edtNoticiaPicture_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtNoticiaPicture_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtNoticiaPicture_Enabled), 5, 0)));
         edtTipoNoticiaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtTipoNoticiaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtTipoNoticiaId_Enabled), 5, 0)));
         edtTipoNoticiaDetalle_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtTipoNoticiaDetalle_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtTipoNoticiaDetalle_Enabled), 5, 0)));
         edtAgenciaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAgenciaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAgenciaId_Enabled), 5, 0)));
         edtPeriodistaRespId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaRespId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaRespId_Enabled), 5, 0)));
         edtPeriodistaRespNom_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaRespNom_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaRespNom_Enabled), 5, 0)));
      }

      protected void assign_properties_default( )
      {
      }

      protected void ConfirmValues090( )
      {
      }

      public override void RenderHtmlHeaders( )
      {
         GxWebStd.gx_html_headers( context, 0, "", "", Form.Meta, Form.Metaequiv, "IE=EmulateIE7");
      }

      public override void RenderHtmlOpenForm( )
      {
         context.WriteHtmlText( "<title>") ;
         context.WriteHtmlText( Form.Caption) ;
         context.WriteHtmlTextNl( "</title>") ;
         if ( StringUtil.Len( sDynURL) > 0 )
         {
            context.WriteHtmlText( "<BASE href=\""+sDynURL+"\" />") ;
         }
         define_styles( ) ;
         MasterPageObj.master_styles();
         if ( ! context.isSmartDevice( ) )
         {
            context.AddJavascriptSource("gxgral.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxcfg.js", "?"+context.GetBuildNumber( 58381));
         }
         else
         {
            context.AddJavascriptSource("gxapiSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxfxSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxtypesSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxpopupSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxfrmutlSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxgridSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("JavaScripTableSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("rijndaelSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxgralSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxcfg.js", "?"+context.GetBuildNumber( 58381));
         }
         context.AddJavascriptSource("calendar.js", "?"+context.GetBuildNumber( 58381));
         context.AddJavascriptSource("calendar-setup.js", "?"+context.GetBuildNumber( 58381));
         context.AddJavascriptSource("calendar-es.js", "?"+context.GetBuildNumber( 58381));
         context.WriteHtmlText( Form.Headerrawhtml) ;
         context.CloseHtmlHeader();
         FormProcess = " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,true,false)\" onkeydown=\"gx.evt.onkeypress(null,true,false)\"" ;
         context.WriteHtmlText( "<body") ;
         context.WriteHtmlText( " "+"class=\"Form\""+" "+" style=\"-moz-opacity:0;opacity:0;"+"background-color:"+context.BuildHTMLColor( Form.Backcolor)+";") ;
         if ( ! ( String.IsNullOrEmpty(StringUtil.RTrim( Form.Background)) ) )
         {
            context.WriteHtmlText( " background-image:url("+context.convertURL( Form.Background)+")") ;
         }
         context.WriteHtmlText( "\""+FormProcess+">") ;
         context.skipLines(1);
         context.WriteHtmlTextNl( "<form id=\"MAINFORM\" onsubmit=\"try{return gx.csv.validForm()}catch(e){return true;}\" name=\"MAINFORM\" method=\"post\" class=\"Form\" novalidate action=\""+formatLink("noticia.aspx") + "?" + UrlEncode(StringUtil.RTrim(Gx_mode)) + "," + UrlEncode("" +AV7NoticiaId)+"\">") ;
         GxWebStd.gx_hidden_field( context, "_EventName", "");
         GxWebStd.gx_hidden_field( context, "_EventGridId", "");
         GxWebStd.gx_hidden_field( context, "_EventRowId", "");
      }

      public override void RenderHtmlCloseForm( )
      {
         /* Send hidden variables. */
         /* Send saved values. */
         GxWebStd.gx_hidden_field( context, "Z34NoticiaId", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z34NoticiaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Z35NoticiaFecha", context.localUtil.DToC( Z35NoticiaFecha, 0, "/"));
         GxWebStd.gx_hidden_field( context, "Z36NoticiaDescripcion", StringUtil.RTrim( Z36NoticiaDescripcion));
         GxWebStd.gx_hidden_field( context, "Z10TipoNoticiaId", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z10TipoNoticiaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Z29AgenciaId", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z29AgenciaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Z32PeriodistaRespId", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z32PeriodistaRespId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "IsConfirmed", StringUtil.LTrim( StringUtil.NToC( (decimal)(IsConfirmed), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "IsModified", StringUtil.LTrim( StringUtil.NToC( (decimal)(IsModified), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Mode", StringUtil.RTrim( Gx_mode));
         GxWebStd.gx_hidden_field( context, "N10TipoNoticiaId", StringUtil.LTrim( StringUtil.NToC( (decimal)(A10TipoNoticiaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "N29AgenciaId", StringUtil.LTrim( StringUtil.NToC( (decimal)(A29AgenciaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "N32PeriodistaRespId", StringUtil.LTrim( StringUtil.NToC( (decimal)(A32PeriodistaRespId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vNOTICIAID", StringUtil.LTrim( StringUtil.NToC( (decimal)(AV7NoticiaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vINSERT_TIPONOTICIAID", StringUtil.LTrim( StringUtil.NToC( (decimal)(AV12Insert_TipoNoticiaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vINSERT_AGENCIAID", StringUtil.LTrim( StringUtil.NToC( (decimal)(AV13Insert_AgenciaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vINSERT_PERIODISTARESPID", StringUtil.LTrim( StringUtil.NToC( (decimal)(AV14Insert_PeriodistaRespId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vPGMNAME", StringUtil.RTrim( AV16Pgmname));
         GxWebStd.gx_hidden_field( context, "vMODE", StringUtil.RTrim( Gx_mode));
         GxWebStd.gx_hidden_field( context, "gxBlobNOTICIAPICTURE", StringUtil.RTrim( A37NoticiaPicture));
         GxWebStd.gx_hidden_field( context, "NOTICIAPICTURE_Filename", StringUtil.RTrim( edtNoticiaPicture_Filename));
         GxWebStd.gx_hidden_field( context, "NOTICIAPICTURE_Filetype", StringUtil.RTrim( edtNoticiaPicture_Filetype));
         GxWebStd.gx_hidden_field( context, "GX_FocusControl", GX_FocusControl);
         SendAjaxEncryptionKey();
         SendComponentObjects();
         SendServerCommands();
         SendState();
         context.WriteHtmlTextNl( "</form>") ;
         include_jscripts( ) ;
      }

      public override short ExecuteStartEvent( )
      {
         standaloneStartup( ) ;
         gxajaxcallmode = (short)((isAjaxCallMode( ) ? 1 : 0)) ;
         return gxajaxcallmode ;
      }

      public override void RenderHtmlContent( )
      {
         Draw( ) ;
      }

      public override void DispatchEvents( )
      {
         Process( ) ;
      }

      public override bool HasEnterEvent( )
      {
         return true ;
      }

      public override String GetPgmname( )
      {
         return "Noticia" ;
      }

      public override String GetPgmdesc( )
      {
         return "Noticia" ;
      }

      public override GXWebForm GetForm( )
      {
         return Form ;
      }

      public override String GetSelfLink( )
      {
         return formatLink("noticia.aspx") + "?" + UrlEncode(StringUtil.RTrim(Gx_mode)) + "," + UrlEncode("" +AV7NoticiaId) ;
      }

      protected void InitializeNonKey0910( )
      {
         A10TipoNoticiaId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10TipoNoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A10TipoNoticiaId), 4, 0)));
         A29AgenciaId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A29AgenciaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A29AgenciaId), 4, 0)));
         A32PeriodistaRespId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A32PeriodistaRespId", StringUtil.LTrim( StringUtil.Str( (decimal)(A32PeriodistaRespId), 4, 0)));
         A35NoticiaFecha = DateTime.MinValue ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A35NoticiaFecha", context.localUtil.Format(A35NoticiaFecha, "99/99/99"));
         A36NoticiaDescripcion = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A36NoticiaDescripcion", A36NoticiaDescripcion);
         A37NoticiaPicture = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A37NoticiaPicture", A37NoticiaPicture);
         A12TipoNoticiaDetalle = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12TipoNoticiaDetalle", A12TipoNoticiaDetalle);
         A33PeriodistaRespNom = "" ;
         n33PeriodistaRespNom = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A33PeriodistaRespNom", A33PeriodistaRespNom);
      }

      protected void InitAll0910( )
      {
         A34NoticiaId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34NoticiaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A34NoticiaId), 4, 0)));
         InitializeNonKey0910( ) ;
      }

      protected void StandaloneModalInsert( )
      {
      }

      protected void define_styles( )
      {
         AddStyleSheetFile("calendar-system.css", "?21265620");
         AddThemeStyleSheetFile("", context.GetTheme( )+".css", "?20412474");
         idxLst = 1 ;
         while ( idxLst <= Form.Jscriptsrc.Count )
         {
            context.AddJavascriptSource(StringUtil.RTrim( Form.Jscriptsrc.Item(idxLst)), "?201282820591688");
            idxLst = (int)(idxLst+1) ;
         }
         /* End function define_styles */
      }

      protected void include_jscripts( )
      {
         context.AddJavascriptSource("messages.spa.js", "?"+context.GetBuildNumber( 58381));
         context.AddJavascriptSource("noticia.js", "?201282820591688");
         /* End function include_jscripts */
      }

      protected void init_default_properties( )
      {
         imgBtn_first_Internalname = "BTN_FIRST" ;
         imgBtn_first_separator_Internalname = "BTN_FIRST_SEPARATOR" ;
         imgBtn_previous_Internalname = "BTN_PREVIOUS" ;
         imgBtn_previous_separator_Internalname = "BTN_PREVIOUS_SEPARATOR" ;
         imgBtn_next_Internalname = "BTN_NEXT" ;
         imgBtn_next_separator_Internalname = "BTN_NEXT_SEPARATOR" ;
         imgBtn_last_Internalname = "BTN_LAST" ;
         imgBtn_last_separator_Internalname = "BTN_LAST_SEPARATOR" ;
         imgBtn_select_Internalname = "BTN_SELECT" ;
         imgBtn_select_separator_Internalname = "BTN_SELECT_SEPARATOR" ;
         imgBtn_enter2_Internalname = "BTN_ENTER2" ;
         imgBtn_enter2_separator_Internalname = "BTN_ENTER2_SEPARATOR" ;
         imgBtn_cancel2_Internalname = "BTN_CANCEL2" ;
         imgBtn_cancel2_separator_Internalname = "BTN_CANCEL2_SEPARATOR" ;
         imgBtn_delete2_Internalname = "BTN_DELETE2" ;
         imgBtn_delete2_separator_Internalname = "BTN_DELETE2_SEPARATOR" ;
         divSectiontoolbar_Internalname = "SECTIONTOOLBAR" ;
         tblTabletoolbar_Internalname = "TABLETOOLBAR" ;
         lblTextblocknoticiaid_Internalname = "TEXTBLOCKNOTICIAID" ;
         edtNoticiaId_Internalname = "NOTICIAID" ;
         lblTextblocknoticiafecha_Internalname = "TEXTBLOCKNOTICIAFECHA" ;
         edtNoticiaFecha_Internalname = "NOTICIAFECHA" ;
         lblTextblocknoticiadescripcion_Internalname = "TEXTBLOCKNOTICIADESCRIPCION" ;
         edtNoticiaDescripcion_Internalname = "NOTICIADESCRIPCION" ;
         lblTextblocknoticiapicture_Internalname = "TEXTBLOCKNOTICIAPICTURE" ;
         edtNoticiaPicture_Internalname = "NOTICIAPICTURE" ;
         lblTextblocktiponoticiaid_Internalname = "TEXTBLOCKTIPONOTICIAID" ;
         edtTipoNoticiaId_Internalname = "TIPONOTICIAID" ;
         lblTextblocktiponoticiadetalle_Internalname = "TEXTBLOCKTIPONOTICIADETALLE" ;
         edtTipoNoticiaDetalle_Internalname = "TIPONOTICIADETALLE" ;
         lblTextblockagenciaid_Internalname = "TEXTBLOCKAGENCIAID" ;
         edtAgenciaId_Internalname = "AGENCIAID" ;
         lblTextblockperiodistarespid_Internalname = "TEXTBLOCKPERIODISTARESPID" ;
         edtPeriodistaRespId_Internalname = "PERIODISTARESPID" ;
         lblTextblockperiodistarespnom_Internalname = "TEXTBLOCKPERIODISTARESPNOM" ;
         edtPeriodistaRespNom_Internalname = "PERIODISTARESPNOM" ;
         tblTable2_Internalname = "TABLE2" ;
         bttBtn_enter_Internalname = "BTN_ENTER" ;
         bttBtn_cancel_Internalname = "BTN_CANCEL" ;
         bttBtn_delete_Internalname = "BTN_DELETE" ;
         tblTable1_Internalname = "TABLE1" ;
         grpGroupdata_Internalname = "GROUPDATA" ;
         tblTablemain_Internalname = "TABLEMAIN" ;
         Form.Internalname = "FORM" ;
         imgprompt_10_Internalname = "PROMPT_10" ;
         imgprompt_29_Internalname = "PROMPT_29" ;
         imgprompt_32_Internalname = "PROMPT_32" ;
      }

      public override void initialize_properties( )
      {
         init_default_properties( ) ;
         edtNoticiaPicture_Filename = "" ;
         Form.Headerrawhtml = "" ;
         Form.Background = "" ;
         Form.Backcolor = (int)(0xFFFFFF) ;
         Form.Caption = "Noticia" ;
         imgBtn_delete2_separator_Visible = 1 ;
         imgBtn_delete2_Enabled = 1 ;
         imgBtn_delete2_Visible = 1 ;
         imgBtn_cancel2_separator_Visible = 1 ;
         imgBtn_cancel2_Visible = 1 ;
         imgBtn_enter2_separator_Visible = 1 ;
         imgBtn_enter2_Enabled = 1 ;
         imgBtn_enter2_Visible = 1 ;
         imgBtn_select_separator_Visible = 1 ;
         imgBtn_select_Visible = 1 ;
         imgBtn_last_separator_Visible = 1 ;
         imgBtn_last_Visible = 1 ;
         imgBtn_next_separator_Visible = 1 ;
         imgBtn_next_Visible = 1 ;
         imgBtn_previous_separator_Visible = 1 ;
         imgBtn_previous_Visible = 1 ;
         imgBtn_first_separator_Visible = 1 ;
         imgBtn_first_Visible = 1 ;
         edtPeriodistaRespNom_Jsonclick = "" ;
         edtPeriodistaRespNom_Enabled = 0 ;
         imgprompt_32_Visible = 1 ;
         imgprompt_32_Link = "" ;
         edtPeriodistaRespId_Jsonclick = "" ;
         edtPeriodistaRespId_Enabled = 1 ;
         imgprompt_29_Visible = 1 ;
         imgprompt_29_Link = "" ;
         edtAgenciaId_Jsonclick = "" ;
         edtAgenciaId_Enabled = 1 ;
         edtTipoNoticiaDetalle_Jsonclick = "" ;
         edtTipoNoticiaDetalle_Enabled = 0 ;
         imgprompt_10_Visible = 1 ;
         imgprompt_10_Link = "" ;
         edtTipoNoticiaId_Jsonclick = "" ;
         edtTipoNoticiaId_Enabled = 1 ;
         edtNoticiaPicture_Jsonclick = "" ;
         edtNoticiaPicture_Parameters = "" ;
         edtNoticiaPicture_Contenttype = "" ;
         edtNoticiaPicture_Filetype = "" ;
         edtNoticiaPicture_Enabled = 1 ;
         edtNoticiaDescripcion_Jsonclick = "" ;
         edtNoticiaDescripcion_Enabled = 1 ;
         edtNoticiaFecha_Jsonclick = "" ;
         edtNoticiaFecha_Enabled = 1 ;
         edtNoticiaId_Jsonclick = "" ;
         edtNoticiaId_Enabled = 0 ;
         bttBtn_delete_Visible = 1 ;
         bttBtn_cancel_Visible = 1 ;
         bttBtn_enter_Visible = 1 ;
         context.GX_msglist.DisplayMode = 1 ;
      }

      protected void dynload_actions( )
      {
         /* End function dynload_actions */
      }

      public void Valid_Tiponoticiaid( short GX_Parm1 ,
                                       String GX_Parm2 )
      {
         A10TipoNoticiaId = GX_Parm1 ;
         A12TipoNoticiaDetalle = GX_Parm2 ;
         /* Using cursor T000920 */
         pr_default.execute(18, new Object[] {A10TipoNoticiaId});
         if ( (pr_default.getStatus(18) == 101) )
         {
            AnyError10 = 1 ;
            GX_msglist.addItem("No existe 'Tipo Noticia'.", "ForeignKeyNotFound", 1, "TIPONOTICIAID");
            AnyError = 1 ;
            GX_FocusControl = edtTipoNoticiaId_Internalname ;
         }
         if ( AnyError10 == 0 )
         {
            A12TipoNoticiaDetalle = T000920_A12TipoNoticiaDetalle[0] ;
         }
         pr_default.close(18);
         dynload_actions( ) ;
         if ( AnyError == 1 )
         {
            A12TipoNoticiaDetalle = "" ;
         }
         isValidOutput.Add((Object)(StringUtil.RTrim( A12TipoNoticiaDetalle)));
         isValidOutput.Add((Object)(context.GX_msglist.ToJavascriptSource()));
         context.GX_webresponse.AddString(isValidOutput.ToJSonString());
         wbTemp = context.ResponseContentType( "application/json") ;
      }

      public void Valid_Agenciaid( short GX_Parm1 )
      {
         A29AgenciaId = GX_Parm1 ;
         /* Using cursor T000923 */
         pr_default.execute(21, new Object[] {A29AgenciaId});
         if ( (pr_default.getStatus(21) == 101) )
         {
            AnyError29 = 1 ;
            GX_msglist.addItem("No existe 'Agencia'.", "ForeignKeyNotFound", 1, "AGENCIAID");
            AnyError = 1 ;
            GX_FocusControl = edtAgenciaId_Internalname ;
         }
         if ( AnyError29 == 0 )
         {
         }
         pr_default.close(21);
         dynload_actions( ) ;
         isValidOutput.Add((Object)(context.GX_msglist.ToJavascriptSource()));
         context.GX_webresponse.AddString(isValidOutput.ToJSonString());
         wbTemp = context.ResponseContentType( "application/json") ;
      }

      public void Valid_Periodistarespid( short GX_Parm1 ,
                                          String GX_Parm2 )
      {
         A32PeriodistaRespId = GX_Parm1 ;
         A33PeriodistaRespNom = GX_Parm2 ;
         n33PeriodistaRespNom = false ;
         /* Using cursor T000921 */
         pr_default.execute(19, new Object[] {A32PeriodistaRespId});
         if ( (pr_default.getStatus(19) == 101) )
         {
            AnyError32 = 1 ;
            GX_msglist.addItem("No existe 'Periodista Resp'.", "ForeignKeyNotFound", 1, "PERIODISTARESPID");
            AnyError = 1 ;
            GX_FocusControl = edtPeriodistaRespId_Internalname ;
         }
         if ( AnyError32 == 0 )
         {
            A33PeriodistaRespNom = T000921_A33PeriodistaRespNom[0] ;
            n33PeriodistaRespNom = T000921_n33PeriodistaRespNom[0] ;
         }
         pr_default.close(19);
         dynload_actions( ) ;
         if ( AnyError == 1 )
         {
            A33PeriodistaRespNom = "" ;
            n33PeriodistaRespNom = false ;
         }
         isValidOutput.Add((Object)(StringUtil.RTrim( A33PeriodistaRespNom)));
         isValidOutput.Add((Object)(context.GX_msglist.ToJavascriptSource()));
         context.GX_webresponse.AddString(isValidOutput.ToJSonString());
         wbTemp = context.ResponseContentType( "application/json") ;
      }

      public void cleanup( )
      {
         flushBuffer();
         CloseOpenCursors();
         if ( IsMain )
         {
            context.CloseConnections() ;
         }
      }

      protected void CloseOpenCursors( )
      {
         pr_default.close(20);
         pr_default.close(11);
         pr_default.close(10);
         pr_default.close(18);
         pr_default.close(21);
         pr_default.close(19);
      }

      public override void initialize( )
      {
         sPrefix = "" ;
         wcpOGx_mode = "" ;
         scmdbuf = "" ;
         gxfirstwebparm = "" ;
         gxfirstwebparm_bkp = "" ;
         PreviousTooltip = "" ;
         PreviousCaption = "" ;
         Form = new GXWebForm();
         GX_FocusControl = "" ;
         sStyleString = "" ;
         ClassString = "" ;
         StyleString = "" ;
         TempTags = "" ;
         bttBtn_enter_Jsonclick = "" ;
         bttBtn_cancel_Jsonclick = "" ;
         bttBtn_delete_Jsonclick = "" ;
         lblTextblocknoticiaid_Jsonclick = "" ;
         lblTextblocknoticiafecha_Jsonclick = "" ;
         A35NoticiaFecha = DateTime.MinValue ;
         lblTextblocknoticiadescripcion_Jsonclick = "" ;
         A36NoticiaDescripcion = "" ;
         lblTextblocknoticiapicture_Jsonclick = "" ;
         gxblobfileaux = new GxFile(context.GetPhysicalPath());
         A37NoticiaPicture = "" ;
         lblTextblocktiponoticiaid_Jsonclick = "" ;
         lblTextblocktiponoticiadetalle_Jsonclick = "" ;
         A12TipoNoticiaDetalle = "" ;
         lblTextblockagenciaid_Jsonclick = "" ;
         lblTextblockperiodistarespid_Jsonclick = "" ;
         lblTextblockperiodistarespnom_Jsonclick = "" ;
         A33PeriodistaRespNom = "" ;
         imgBtn_first_Jsonclick = "" ;
         imgBtn_first_separator_Jsonclick = "" ;
         imgBtn_previous_Jsonclick = "" ;
         imgBtn_previous_separator_Jsonclick = "" ;
         imgBtn_next_Jsonclick = "" ;
         imgBtn_next_separator_Jsonclick = "" ;
         imgBtn_last_Jsonclick = "" ;
         imgBtn_last_separator_Jsonclick = "" ;
         imgBtn_select_Jsonclick = "" ;
         imgBtn_select_separator_Jsonclick = "" ;
         imgBtn_enter2_Jsonclick = "" ;
         imgBtn_enter2_separator_Jsonclick = "" ;
         imgBtn_cancel2_Jsonclick = "" ;
         imgBtn_cancel2_separator_Jsonclick = "" ;
         imgBtn_delete2_Jsonclick = "" ;
         imgBtn_delete2_separator_Jsonclick = "" ;
         Z35NoticiaFecha = DateTime.MinValue ;
         Z36NoticiaDescripcion = "" ;
         AV16Pgmname = "" ;
         sMode10 = "" ;
         sEvt = "" ;
         EvtGridId = "" ;
         EvtRowId = "" ;
         sEvtType = "" ;
         AV10TrnContext = new SdtTransactionContext(context);
         AV11WebSession = new GxWebSession( context);
         AV15TrnContextAtt = new SdtTransactionContext_Attribute(context);
         Z37NoticiaPicture = "" ;
         Z12TipoNoticiaDetalle = "" ;
         Z33PeriodistaRespNom = "" ;
         T00096_A33PeriodistaRespNom = new String[] {""} ;
         T00096_n33PeriodistaRespNom = new bool[] {false} ;
         T00094_A12TipoNoticiaDetalle = new String[] {""} ;
         T00097_A34NoticiaId = new short[1] ;
         T00097_A35NoticiaFecha = new DateTime[] {DateTime.MinValue} ;
         T00097_A36NoticiaDescripcion = new String[] {""} ;
         T00097_A12TipoNoticiaDetalle = new String[] {""} ;
         T00097_A33PeriodistaRespNom = new String[] {""} ;
         T00097_n33PeriodistaRespNom = new bool[] {false} ;
         T00097_A10TipoNoticiaId = new short[1] ;
         T00097_A29AgenciaId = new short[1] ;
         T00097_A32PeriodistaRespId = new short[1] ;
         T00097_A37NoticiaPicture = new String[] {""} ;
         T00095_A29AgenciaId = new short[1] ;
         T00098_A12TipoNoticiaDetalle = new String[] {""} ;
         T00099_A29AgenciaId = new short[1] ;
         T000910_A33PeriodistaRespNom = new String[] {""} ;
         T000910_n33PeriodistaRespNom = new bool[] {false} ;
         T000911_A34NoticiaId = new short[1] ;
         T00093_A34NoticiaId = new short[1] ;
         T00093_A35NoticiaFecha = new DateTime[] {DateTime.MinValue} ;
         T00093_A36NoticiaDescripcion = new String[] {""} ;
         T00093_A10TipoNoticiaId = new short[1] ;
         T00093_A29AgenciaId = new short[1] ;
         T00093_A32PeriodistaRespId = new short[1] ;
         T00093_A37NoticiaPicture = new String[] {""} ;
         T000912_A34NoticiaId = new short[1] ;
         T000913_A34NoticiaId = new short[1] ;
         T000914_A34NoticiaId = new short[1] ;
         T000914_A35NoticiaFecha = new DateTime[] {DateTime.MinValue} ;
         T000914_A36NoticiaDescripcion = new String[] {""} ;
         T000914_A10TipoNoticiaId = new short[1] ;
         T000914_A29AgenciaId = new short[1] ;
         T000914_A32PeriodistaRespId = new short[1] ;
         T000914_A37NoticiaPicture = new String[] {""} ;
         T000916_A34NoticiaId = new short[1] ;
         T000920_A12TipoNoticiaDetalle = new String[] {""} ;
         T000921_A33PeriodistaRespNom = new String[] {""} ;
         T000921_n33PeriodistaRespNom = new bool[] {false} ;
         T000922_A34NoticiaId = new short[1] ;
         sDynURL = "" ;
         FormProcess = "" ;
         isValidOutput = new GxUnknownObjectCollection();
         T000923_A29AgenciaId = new short[1] ;
         pr_default = new DataStoreProvider(context, new GeneXus.Programs.noticia__default(),
            new Object[][] {
                new Object[] {
               T00092_A34NoticiaId, T00092_A35NoticiaFecha, T00092_A36NoticiaDescripcion, T00092_A10TipoNoticiaId, T00092_A29AgenciaId, T00092_A32PeriodistaRespId, T00092_A37NoticiaPicture
               }
               , new Object[] {
               T00093_A34NoticiaId, T00093_A35NoticiaFecha, T00093_A36NoticiaDescripcion, T00093_A10TipoNoticiaId, T00093_A29AgenciaId, T00093_A32PeriodistaRespId, T00093_A37NoticiaPicture
               }
               , new Object[] {
               T00094_A12TipoNoticiaDetalle
               }
               , new Object[] {
               T00095_A29AgenciaId
               }
               , new Object[] {
               T00096_A33PeriodistaRespNom, T00096_n33PeriodistaRespNom
               }
               , new Object[] {
               T00097_A34NoticiaId, T00097_A35NoticiaFecha, T00097_A36NoticiaDescripcion, T00097_A12TipoNoticiaDetalle, T00097_A33PeriodistaRespNom, T00097_n33PeriodistaRespNom, T00097_A10TipoNoticiaId, T00097_A29AgenciaId, T00097_A32PeriodistaRespId, T00097_A37NoticiaPicture
               }
               , new Object[] {
               T00098_A12TipoNoticiaDetalle
               }
               , new Object[] {
               T00099_A29AgenciaId
               }
               , new Object[] {
               T000910_A33PeriodistaRespNom, T000910_n33PeriodistaRespNom
               }
               , new Object[] {
               T000911_A34NoticiaId
               }
               , new Object[] {
               T000912_A34NoticiaId
               }
               , new Object[] {
               T000913_A34NoticiaId
               }
               , new Object[] {
               T000914_A34NoticiaId, T000914_A35NoticiaFecha, T000914_A36NoticiaDescripcion, T000914_A10TipoNoticiaId, T000914_A29AgenciaId, T000914_A32PeriodistaRespId, T000914_A37NoticiaPicture
               }
               , new Object[] {
               }
               , new Object[] {
               T000916_A34NoticiaId
               }
               , new Object[] {
               }
               , new Object[] {
               }
               , new Object[] {
               }
               , new Object[] {
               T000920_A12TipoNoticiaDetalle
               }
               , new Object[] {
               T000921_A33PeriodistaRespNom, T000921_n33PeriodistaRespNom
               }
               , new Object[] {
               T000922_A34NoticiaId
               }
               , new Object[] {
               T000923_A29AgenciaId
               }
            }
         );
         AV16Pgmname = "Noticia" ;
      }

      private short wcpOAV7NoticiaId ;
      private short GxWebError ;
      private short A10TipoNoticiaId ;
      private short A29AgenciaId ;
      private short A32PeriodistaRespId ;
      private short AV7NoticiaId ;
      private short IsConfirmed ;
      private short IsModified ;
      private short AnyError ;
      private short nKeyPressed ;
      private short initialized ;
      private short A34NoticiaId ;
      private short Z34NoticiaId ;
      private short Z10TipoNoticiaId ;
      private short Z29AgenciaId ;
      private short Z32PeriodistaRespId ;
      private short N10TipoNoticiaId ;
      private short N29AgenciaId ;
      private short N32PeriodistaRespId ;
      private short AV12Insert_TipoNoticiaId ;
      private short AV13Insert_AgenciaId ;
      private short AV14Insert_PeriodistaRespId ;
      private short RcdFound10 ;
      private short GX_JID ;
      private short Gx_BScreen ;
      private short gxajaxcallmode ;
      private short wbTemp ;
      private int trnEnded ;
      private int bttBtn_enter_Visible ;
      private int bttBtn_cancel_Visible ;
      private int bttBtn_delete_Visible ;
      private int edtNoticiaId_Enabled ;
      private int edtNoticiaFecha_Enabled ;
      private int edtNoticiaDescripcion_Enabled ;
      private int edtNoticiaPicture_Enabled ;
      private int edtTipoNoticiaId_Enabled ;
      private int imgprompt_10_Visible ;
      private int edtTipoNoticiaDetalle_Enabled ;
      private int edtAgenciaId_Enabled ;
      private int imgprompt_29_Visible ;
      private int edtPeriodistaRespId_Enabled ;
      private int imgprompt_32_Visible ;
      private int edtPeriodistaRespNom_Enabled ;
      private int imgBtn_first_Visible ;
      private int imgBtn_first_separator_Visible ;
      private int imgBtn_previous_Visible ;
      private int imgBtn_previous_separator_Visible ;
      private int imgBtn_next_Visible ;
      private int imgBtn_next_separator_Visible ;
      private int imgBtn_last_Visible ;
      private int imgBtn_last_separator_Visible ;
      private int imgBtn_select_Visible ;
      private int imgBtn_select_separator_Visible ;
      private int imgBtn_enter2_Visible ;
      private int imgBtn_enter2_Enabled ;
      private int imgBtn_enter2_separator_Visible ;
      private int imgBtn_cancel2_Visible ;
      private int imgBtn_cancel2_separator_Visible ;
      private int imgBtn_delete2_Visible ;
      private int imgBtn_delete2_Enabled ;
      private int imgBtn_delete2_separator_Visible ;
      private int AV17GXV1 ;
      private int AnyError10 ;
      private int AnyError29 ;
      private int AnyError32 ;
      private int idxLst ;
      private String sPrefix ;
      private String wcpOGx_mode ;
      private String scmdbuf ;
      private String gxfirstwebparm ;
      private String gxfirstwebparm_bkp ;
      private String Gx_mode ;
      private String PreviousTooltip ;
      private String PreviousCaption ;
      private String GX_FocusControl ;
      private String edtNoticiaFecha_Internalname ;
      private String sStyleString ;
      private String tblTablemain_Internalname ;
      private String ClassString ;
      private String StyleString ;
      private String grpGroupdata_Internalname ;
      private String tblTable1_Internalname ;
      private String TempTags ;
      private String bttBtn_enter_Internalname ;
      private String bttBtn_enter_Jsonclick ;
      private String bttBtn_cancel_Internalname ;
      private String bttBtn_cancel_Jsonclick ;
      private String bttBtn_delete_Internalname ;
      private String bttBtn_delete_Jsonclick ;
      private String tblTable2_Internalname ;
      private String lblTextblocknoticiaid_Internalname ;
      private String lblTextblocknoticiaid_Jsonclick ;
      private String edtNoticiaId_Internalname ;
      private String edtNoticiaId_Jsonclick ;
      private String lblTextblocknoticiafecha_Internalname ;
      private String lblTextblocknoticiafecha_Jsonclick ;
      private String edtNoticiaFecha_Jsonclick ;
      private String lblTextblocknoticiadescripcion_Internalname ;
      private String lblTextblocknoticiadescripcion_Jsonclick ;
      private String edtNoticiaDescripcion_Internalname ;
      private String edtNoticiaDescripcion_Jsonclick ;
      private String lblTextblocknoticiapicture_Internalname ;
      private String lblTextblocknoticiapicture_Jsonclick ;
      private String edtNoticiaPicture_Filetype ;
      private String edtNoticiaPicture_Internalname ;
      private String edtNoticiaPicture_Contenttype ;
      private String edtNoticiaPicture_Parameters ;
      private String edtNoticiaPicture_Jsonclick ;
      private String lblTextblocktiponoticiaid_Internalname ;
      private String lblTextblocktiponoticiaid_Jsonclick ;
      private String edtTipoNoticiaId_Internalname ;
      private String edtTipoNoticiaId_Jsonclick ;
      private String imgprompt_10_Internalname ;
      private String imgprompt_10_Link ;
      private String lblTextblocktiponoticiadetalle_Internalname ;
      private String lblTextblocktiponoticiadetalle_Jsonclick ;
      private String edtTipoNoticiaDetalle_Internalname ;
      private String edtTipoNoticiaDetalle_Jsonclick ;
      private String lblTextblockagenciaid_Internalname ;
      private String lblTextblockagenciaid_Jsonclick ;
      private String edtAgenciaId_Internalname ;
      private String edtAgenciaId_Jsonclick ;
      private String imgprompt_29_Internalname ;
      private String imgprompt_29_Link ;
      private String lblTextblockperiodistarespid_Internalname ;
      private String lblTextblockperiodistarespid_Jsonclick ;
      private String edtPeriodistaRespId_Internalname ;
      private String edtPeriodistaRespId_Jsonclick ;
      private String imgprompt_32_Internalname ;
      private String imgprompt_32_Link ;
      private String lblTextblockperiodistarespnom_Internalname ;
      private String lblTextblockperiodistarespnom_Jsonclick ;
      private String edtPeriodistaRespNom_Internalname ;
      private String edtPeriodistaRespNom_Jsonclick ;
      private String tblTabletoolbar_Internalname ;
      private String divSectiontoolbar_Internalname ;
      private String imgBtn_first_Internalname ;
      private String imgBtn_first_Jsonclick ;
      private String imgBtn_first_separator_Internalname ;
      private String imgBtn_first_separator_Jsonclick ;
      private String imgBtn_previous_Internalname ;
      private String imgBtn_previous_Jsonclick ;
      private String imgBtn_previous_separator_Internalname ;
      private String imgBtn_previous_separator_Jsonclick ;
      private String imgBtn_next_Internalname ;
      private String imgBtn_next_Jsonclick ;
      private String imgBtn_next_separator_Internalname ;
      private String imgBtn_next_separator_Jsonclick ;
      private String imgBtn_last_Internalname ;
      private String imgBtn_last_Jsonclick ;
      private String imgBtn_last_separator_Internalname ;
      private String imgBtn_last_separator_Jsonclick ;
      private String imgBtn_select_Internalname ;
      private String imgBtn_select_Jsonclick ;
      private String imgBtn_select_separator_Internalname ;
      private String imgBtn_select_separator_Jsonclick ;
      private String imgBtn_enter2_Internalname ;
      private String imgBtn_enter2_Jsonclick ;
      private String imgBtn_enter2_separator_Internalname ;
      private String imgBtn_enter2_separator_Jsonclick ;
      private String imgBtn_cancel2_Internalname ;
      private String imgBtn_cancel2_Jsonclick ;
      private String imgBtn_cancel2_separator_Internalname ;
      private String imgBtn_cancel2_separator_Jsonclick ;
      private String imgBtn_delete2_Internalname ;
      private String imgBtn_delete2_Jsonclick ;
      private String imgBtn_delete2_separator_Internalname ;
      private String imgBtn_delete2_separator_Jsonclick ;
      private String AV16Pgmname ;
      private String edtNoticiaPicture_Filename ;
      private String sMode10 ;
      private String sEvt ;
      private String EvtGridId ;
      private String EvtRowId ;
      private String sEvtType ;
      private String sDynURL ;
      private String FormProcess ;
      private DateTime A35NoticiaFecha ;
      private DateTime Z35NoticiaFecha ;
      private bool entryPointCalled ;
      private bool wbErr ;
      private bool n33PeriodistaRespNom ;
      private bool AV9IsAuthorized ;
      private bool returnInSub ;
      private String A36NoticiaDescripcion ;
      private String A12TipoNoticiaDetalle ;
      private String A33PeriodistaRespNom ;
      private String Z36NoticiaDescripcion ;
      private String Z12TipoNoticiaDetalle ;
      private String Z33PeriodistaRespNom ;
      private String A37NoticiaPicture ;
      private String Z37NoticiaPicture ;
      private GxWebSession AV11WebSession ;
      private GxUnknownObjectCollection isValidOutput ;
      private GxFile gxblobfileaux ;
      private GXMasterPage MasterPageObj ;
      private IGxDataStore dsDefault ;
      private IDataStoreProvider pr_default ;
      private String[] T00096_A33PeriodistaRespNom ;
      private bool[] T00096_n33PeriodistaRespNom ;
      private String[] T00094_A12TipoNoticiaDetalle ;
      private short[] T00097_A34NoticiaId ;
      private DateTime[] T00097_A35NoticiaFecha ;
      private String[] T00097_A36NoticiaDescripcion ;
      private String[] T00097_A12TipoNoticiaDetalle ;
      private String[] T00097_A33PeriodistaRespNom ;
      private bool[] T00097_n33PeriodistaRespNom ;
      private short[] T00097_A10TipoNoticiaId ;
      private short[] T00097_A29AgenciaId ;
      private short[] T00097_A32PeriodistaRespId ;
      private String[] T00097_A37NoticiaPicture ;
      private short[] T00095_A29AgenciaId ;
      private String[] T00098_A12TipoNoticiaDetalle ;
      private short[] T00099_A29AgenciaId ;
      private String[] T000910_A33PeriodistaRespNom ;
      private bool[] T000910_n33PeriodistaRespNom ;
      private short[] T000911_A34NoticiaId ;
      private short[] T00093_A34NoticiaId ;
      private DateTime[] T00093_A35NoticiaFecha ;
      private String[] T00093_A36NoticiaDescripcion ;
      private short[] T00093_A10TipoNoticiaId ;
      private short[] T00093_A29AgenciaId ;
      private short[] T00093_A32PeriodistaRespId ;
      private String[] T00093_A37NoticiaPicture ;
      private short[] T000912_A34NoticiaId ;
      private short[] T000913_A34NoticiaId ;
      private short[] T000914_A34NoticiaId ;
      private DateTime[] T000914_A35NoticiaFecha ;
      private String[] T000914_A36NoticiaDescripcion ;
      private short[] T000914_A10TipoNoticiaId ;
      private short[] T000914_A29AgenciaId ;
      private short[] T000914_A32PeriodistaRespId ;
      private String[] T000914_A37NoticiaPicture ;
      private short[] T000916_A34NoticiaId ;
      private String[] T000920_A12TipoNoticiaDetalle ;
      private String[] T000921_A33PeriodistaRespNom ;
      private bool[] T000921_n33PeriodistaRespNom ;
      private short[] T000922_A34NoticiaId ;
      private short[] T000923_A29AgenciaId ;
      private short[] T00092_A34NoticiaId ;
      private DateTime[] T00092_A35NoticiaFecha ;
      private String[] T00092_A36NoticiaDescripcion ;
      private short[] T00092_A10TipoNoticiaId ;
      private short[] T00092_A29AgenciaId ;
      private short[] T00092_A32PeriodistaRespId ;
      private String[] T00092_A37NoticiaPicture ;
      private GXWebForm Form ;
      private SdtTransactionContext AV10TrnContext ;
      private SdtTransactionContext_Attribute AV15TrnContextAtt ;
   }

   public class noticia__default : DataStoreHelperBase, IDataStoreHelper
   {
      public ICursor[] getCursors( )
      {
         cursorDefinitions();
         return new Cursor[] {
          new ForEachCursor(def[0])
         ,new ForEachCursor(def[1])
         ,new ForEachCursor(def[2])
         ,new ForEachCursor(def[3])
         ,new ForEachCursor(def[4])
         ,new ForEachCursor(def[5])
         ,new ForEachCursor(def[6])
         ,new ForEachCursor(def[7])
         ,new ForEachCursor(def[8])
         ,new ForEachCursor(def[9])
         ,new ForEachCursor(def[10])
         ,new ForEachCursor(def[11])
         ,new ForEachCursor(def[12])
         ,new UpdateCursor(def[13])
         ,new ForEachCursor(def[14])
         ,new UpdateCursor(def[15])
         ,new UpdateCursor(def[16])
         ,new UpdateCursor(def[17])
         ,new ForEachCursor(def[18])
         ,new ForEachCursor(def[19])
         ,new ForEachCursor(def[20])
         ,new ForEachCursor(def[21])
       };
    }

    private static CursorDef[] def;
    private void cursorDefinitions( )
    {
       if ( def == null )
       {
          Object[] prmT00092 ;
          prmT00092 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00097 ;
          prmT00097 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00094 ;
          prmT00094 = new Object[] {
          new Object[] {"@TipoNoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00095 ;
          prmT00095 = new Object[] {
          new Object[] {"@AgenciaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00096 ;
          prmT00096 = new Object[] {
          new Object[] {"@PeriodistaRespId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00098 ;
          prmT00098 = new Object[] {
          new Object[] {"@TipoNoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00099 ;
          prmT00099 = new Object[] {
          new Object[] {"@AgenciaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000910 ;
          prmT000910 = new Object[] {
          new Object[] {"@PeriodistaRespId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000911 ;
          prmT000911 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00093 ;
          prmT00093 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000912 ;
          prmT000912 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000913 ;
          prmT000913 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000914 ;
          prmT000914 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000915 ;
          prmT000915 = new Object[] {
          new Object[] {"@NoticiaFecha",SqlDbType.DateTime,8,0} ,
          new Object[] {"@NoticiaDescripcion",SqlDbType.VarChar,40,0} ,
          new Object[] {"@NoticiaPicture",SqlDbType.VarBinary,1024,0} ,
          new Object[] {"@TipoNoticiaId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AgenciaId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@PeriodistaRespId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000916 ;
          prmT000916 = new Object[] {
          } ;
          Object[] prmT000917 ;
          prmT000917 = new Object[] {
          new Object[] {"@NoticiaFecha",SqlDbType.DateTime,8,0} ,
          new Object[] {"@NoticiaDescripcion",SqlDbType.VarChar,40,0} ,
          new Object[] {"@TipoNoticiaId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AgenciaId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@PeriodistaRespId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000918 ;
          prmT000918 = new Object[] {
          new Object[] {"@NoticiaPicture",SqlDbType.VarBinary,1024,0} ,
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000919 ;
          prmT000919 = new Object[] {
          new Object[] {"@NoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000922 ;
          prmT000922 = new Object[] {
          } ;
          Object[] prmT000920 ;
          prmT000920 = new Object[] {
          new Object[] {"@TipoNoticiaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000923 ;
          prmT000923 = new Object[] {
          new Object[] {"@AgenciaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000921 ;
          prmT000921 = new Object[] {
          new Object[] {"@PeriodistaRespId",SqlDbType.SmallInt,4,0}
          } ;
          def= new CursorDef[] {
              new CursorDef("T00092", "SELECT [NoticiaId], [NoticiaFecha], [NoticiaDescripcion], [TipoNoticiaId], [AgenciaId], [PeriodistaRespId] AS PeriodistaRespId, [NoticiaPicture] FROM [Noticia] WITH (UPDLOCK) WHERE [NoticiaId] = @NoticiaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00092,1,0,true,false )
             ,new CursorDef("T00093", "SELECT [NoticiaId], [NoticiaFecha], [NoticiaDescripcion], [TipoNoticiaId], [AgenciaId], [PeriodistaRespId] AS PeriodistaRespId, [NoticiaPicture] FROM [Noticia] WITH (NOLOCK) WHERE [NoticiaId] = @NoticiaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00093,1,0,true,false )
             ,new CursorDef("T00094", "SELECT [TipoNoticiaDetalle] FROM [TipoNoticia] WITH (NOLOCK) WHERE [TipoNoticiaId] = @TipoNoticiaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00094,1,0,true,false )
             ,new CursorDef("T00095", "SELECT [AgenciaId] FROM [Agencia] WITH (NOLOCK) WHERE [AgenciaId] = @AgenciaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00095,1,0,true,false )
             ,new CursorDef("T00096", "SELECT [PeriodistaNombre] AS PeriodistaRespNom FROM [Periodista] WITH (NOLOCK) WHERE [PeriodistaId] = @PeriodistaRespId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00096,1,0,true,false )
             ,new CursorDef("T00097", "SELECT TM1.[NoticiaId], TM1.[NoticiaFecha], TM1.[NoticiaDescripcion], T2.[TipoNoticiaDetalle], T3.[PeriodistaNombre] AS PeriodistaRespNom, TM1.[TipoNoticiaId], TM1.[AgenciaId], TM1.[PeriodistaRespId] AS PeriodistaRespId, TM1.[NoticiaPicture] FROM (([Noticia] TM1 WITH (NOLOCK) INNER JOIN [TipoNoticia] T2 WITH (NOLOCK) ON T2.[TipoNoticiaId] = TM1.[TipoNoticiaId]) INNER JOIN [Periodista] T3 WITH (NOLOCK) ON T3.[PeriodistaId] = TM1.[PeriodistaRespId]) WHERE TM1.[NoticiaId] = @NoticiaId ORDER BY TM1.[NoticiaId]  OPTION (FAST 100)",true, GxErrorMask.GX_NOMASK, false, this,prmT00097,100,0,true,false )
             ,new CursorDef("T00098", "SELECT [TipoNoticiaDetalle] FROM [TipoNoticia] WITH (NOLOCK) WHERE [TipoNoticiaId] = @TipoNoticiaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00098,1,0,true,false )
             ,new CursorDef("T00099", "SELECT [AgenciaId] FROM [Agencia] WITH (NOLOCK) WHERE [AgenciaId] = @AgenciaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00099,1,0,true,false )
             ,new CursorDef("T000910", "SELECT [PeriodistaNombre] AS PeriodistaRespNom FROM [Periodista] WITH (NOLOCK) WHERE [PeriodistaId] = @PeriodistaRespId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000910,1,0,true,false )
             ,new CursorDef("T000911", "SELECT [NoticiaId] FROM [Noticia] WITH (NOLOCK) WHERE [NoticiaId] = @NoticiaId  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT000911,1,0,true,false )
             ,new CursorDef("T000912", "SELECT TOP 1 [NoticiaId] FROM [Noticia] WITH (NOLOCK) WHERE ( [NoticiaId] > @NoticiaId) ORDER BY [NoticiaId]  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT000912,1,0,true,true )
             ,new CursorDef("T000913", "SELECT TOP 1 [NoticiaId] FROM [Noticia] WITH (NOLOCK) WHERE ( [NoticiaId] < @NoticiaId) ORDER BY [NoticiaId] DESC  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT000913,1,0,true,true )
             ,new CursorDef("T000914", "SELECT [NoticiaId], [NoticiaFecha], [NoticiaDescripcion], [TipoNoticiaId], [AgenciaId], [PeriodistaRespId] AS PeriodistaRespId, [NoticiaPicture] FROM [Noticia] WITH (UPDLOCK) WHERE [NoticiaId] = @NoticiaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000914,1,0,true,false )
             ,new CursorDef("T000915", "INSERT INTO [Noticia] ([NoticiaFecha], [NoticiaDescripcion], [NoticiaPicture], [TipoNoticiaId], [AgenciaId], [PeriodistaRespId]) VALUES (@NoticiaFecha, @NoticiaDescripcion, @NoticiaPicture, @TipoNoticiaId, @AgenciaId, @PeriodistaRespId)", GxErrorMask.GX_NOMASK,prmT000915)
             ,new CursorDef("T000916", "SELECT Ident_Current('[Noticia]') ",true, GxErrorMask.GX_NOMASK, false, this,prmT000916,1,0,true,false )
             ,new CursorDef("T000917", "UPDATE [Noticia] SET [NoticiaFecha]=@NoticiaFecha, [NoticiaDescripcion]=@NoticiaDescripcion, [TipoNoticiaId]=@TipoNoticiaId, [AgenciaId]=@AgenciaId, [PeriodistaRespId]=@PeriodistaRespId  WHERE [NoticiaId] = @NoticiaId", GxErrorMask.GX_NOMASK,prmT000917)
             ,new CursorDef("T000918", "UPDATE [Noticia] SET [NoticiaPicture]=@NoticiaPicture  WHERE [NoticiaId] = @NoticiaId", GxErrorMask.GX_NOMASK,prmT000918)
             ,new CursorDef("T000919", "DELETE FROM [Noticia]  WHERE [NoticiaId] = @NoticiaId", GxErrorMask.GX_NOMASK,prmT000919)
             ,new CursorDef("T000920", "SELECT [TipoNoticiaDetalle] FROM [TipoNoticia] WITH (NOLOCK) WHERE [TipoNoticiaId] = @TipoNoticiaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000920,1,0,true,false )
             ,new CursorDef("T000921", "SELECT [PeriodistaNombre] AS PeriodistaRespNom FROM [Periodista] WITH (NOLOCK) WHERE [PeriodistaId] = @PeriodistaRespId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000921,1,0,true,false )
             ,new CursorDef("T000922", "SELECT [NoticiaId] FROM [Noticia] WITH (NOLOCK) ORDER BY [NoticiaId]  OPTION (FAST 100)",true, GxErrorMask.GX_NOMASK, false, this,prmT000922,100,0,true,false )
             ,new CursorDef("T000923", "SELECT [AgenciaId] FROM [Agencia] WITH (NOLOCK) WHERE [AgenciaId] = @AgenciaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000923,1,0,true,false )
          };
       }
    }

    public void getResults( int cursor ,
                            IFieldGetter rslt ,
                            Object[] buf )
    {
       switch ( cursor )
       {
             case 0 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((short[]) buf[4])[0] = rslt.getShort(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                ((String[]) buf[6])[0] = rslt.getBLOBFile(7, "tmp", "") ;
                break;
             case 1 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((short[]) buf[4])[0] = rslt.getShort(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                ((String[]) buf[6])[0] = rslt.getBLOBFile(7, "tmp", "") ;
                break;
             case 2 :
                ((String[]) buf[0])[0] = rslt.getVarchar(1) ;
                break;
             case 3 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 4 :
                ((String[]) buf[0])[0] = rslt.getVarchar(1) ;
                ((bool[]) buf[1])[0] = rslt.wasNull(1);
                break;
             case 5 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((String[]) buf[3])[0] = rslt.getVarchar(4) ;
                ((String[]) buf[4])[0] = rslt.getVarchar(5) ;
                ((bool[]) buf[5])[0] = rslt.wasNull(5);
                ((short[]) buf[6])[0] = rslt.getShort(6) ;
                ((short[]) buf[7])[0] = rslt.getShort(7) ;
                ((short[]) buf[8])[0] = rslt.getShort(8) ;
                ((String[]) buf[9])[0] = rslt.getBLOBFile(9, "tmp", "") ;
                break;
             case 6 :
                ((String[]) buf[0])[0] = rslt.getVarchar(1) ;
                break;
             case 7 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 8 :
                ((String[]) buf[0])[0] = rslt.getVarchar(1) ;
                ((bool[]) buf[1])[0] = rslt.wasNull(1);
                break;
             case 9 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 10 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 11 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 12 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((short[]) buf[4])[0] = rslt.getShort(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                ((String[]) buf[6])[0] = rslt.getBLOBFile(7, "tmp", "") ;
                break;
             case 14 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 18 :
                ((String[]) buf[0])[0] = rslt.getVarchar(1) ;
                break;
             case 19 :
                ((String[]) buf[0])[0] = rslt.getVarchar(1) ;
                ((bool[]) buf[1])[0] = rslt.wasNull(1);
                break;
             case 20 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 21 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
       }
    }

    public void setParameters( int cursor ,
                               IFieldSetter stmt ,
                               Object[] parms )
    {
       switch ( cursor )
       {
             case 0 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 1 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 2 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 3 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 4 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 5 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 6 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 7 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 8 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 9 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 10 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 11 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 12 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 13 :
                stmt.SetParameter(1, (DateTime)parms[0]);
                stmt.SetParameter(2, (String)parms[1]);
                stmt.SetParameter(3, (String)parms[2]);
                stmt.SetParameter(4, (short)parms[3]);
                stmt.SetParameter(5, (short)parms[4]);
                stmt.SetParameter(6, (short)parms[5]);
                break;
             case 15 :
                stmt.SetParameter(1, (DateTime)parms[0]);
                stmt.SetParameter(2, (String)parms[1]);
                stmt.SetParameter(3, (short)parms[2]);
                stmt.SetParameter(4, (short)parms[3]);
                stmt.SetParameter(5, (short)parms[4]);
                stmt.SetParameter(6, (short)parms[5]);
                break;
             case 16 :
                stmt.SetParameter(1, (String)parms[0]);
                stmt.SetParameter(2, (short)parms[1]);
                break;
             case 17 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 18 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 19 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 21 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
       }
    }

 }

}
